Skip to content

Commit 6bf8314

Browse files
Merge pull request #14 from pace-gt/code_updated_jan_2026
Code updated jan 2026
2 parents 3314be1 + 03ce01e commit 6bf8314

File tree

2 files changed

+36
-20
lines changed

2 files changed

+36
-20
lines changed

README.md

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# python_github_tutorial
1+
# python_github_tutorial
22

33
## Overview
44

@@ -12,21 +12,33 @@ To be added in the future.
1212

1313
## Installation
1414

15+
This project's environment can be built using `miniforge`.
16+
Alternative software for `miniforge`:
17+
- You use can use `anaconda` or `miniconda`, which use the same `conda` command.
18+
- You use can use `micromamba` or `mamba`, supplimenting `micromamba` or `mamba` respectively for `conda` when using them.
19+
1520
The python_github_tutorial package dependencies can be installed via conda, and this package tagged in conda via pip install:
1621

1722
Create and install conda package:
1823

19-
`cd path_to_first_python_github_tutorial_dirctory_with_environment_yml_file`
24+
cd "<YOUR_FILE_PATH/python_github_tutorial>"
25+
26+
`cd python_github_tutorial`
27+
28+
Create the environment
2029

2130
`conda env create -f environment.yml`
2231

32+
Activate the environment the environment
33+
2334
`conda activate python_github_tutorial`
2435

36+
Install the developement enviroment
37+
2538
`pip install -e .`
2639

2740
Note: If you update the conda package, you may have to redo the pip install. Without doing this, it may allow incompatable versions of the dependencies to be installed, etc.:
2841

29-
`pip install -e .`
3042

3143
## Run the example
3244

@@ -38,20 +50,20 @@ The example is located here 'examples_to_run/examples.py'. The instructions to r
3850

3951
`python examples.py`
4052

41-
## Run the interactive example in Visual Studios Code (VScode)
53+
## Run the interactive example in Visual Studios Code (VScode)
4254

43-
This is the same example but running it as an interactive job (i.e., like a Jupyter notebook). The example is located here 'examples_to_run/interactive_examples.py'.
55+
This is the same example but running it as an interactive job (i.e., like a Jupyter notebook). The example is located here 'examples_to_run/interactive_examples.py'.
4456

4557
When using Visual Studios Code (VScode), the '# %%' above each section makes it a cell, which can be run individually by holding shift and pressing enter.
4658

4759

4860
## Run the test cases (unit tests) using pytest
4961

50-
The python_github_tutorial software tests the installation using [pytest](https://docs.pytest.org/en/stable/).
51-
The unit tests via ``pytest`` ensure that the code is build properly, running correctly and producing
52-
accurate results.
62+
The python_github_tutorial software tests the installation using [pytest](https://docs.pytest.org/en/stable/).
63+
The unit tests via ``pytest`` ensure that the code is build properly, running correctly and producing
64+
accurate results.
5365

54-
To perform these tests (unit tests) for the python_github_tutorial package, please run the following commands
66+
To perform these tests (unit tests) for the python_github_tutorial package, please run the following commands
5567
from the ``python_github_tutorial/tests`` directory:
5668

5769
Run all the tests:
@@ -74,13 +86,17 @@ Run individual test on 'test_main_functions.py':
7486

7587
## Build the documentation (docs)
7688

77-
Building these HTML files locally via sphinx, which will allow you to access them with your
78-
local internet browsing application or HTML viewer (chrome, safari, VScode, etc.).
79-
The HTML files will be located in the ``docs/_build/html`` directory after they are built.
89+
Building these HTML files locally via sphinx, which will allow you to access them with your
90+
local internet browsing application or HTML viewer (chrome, safari, VScode, etc.).
91+
The HTML files will be located in the ``docs/_build/html`` directory after they are built.
8092

81-
The python_github_tutorial utilizes [sphinx](https://www.sphinx-doc.org/en/master/index.html) to construct the documentation.
93+
The python_github_tutorial utilizes [sphinx](https://www.sphinx-doc.org/en/master/index.html) to construct the documentation.
8294
The user can build the documentation locally by executing the following command from the ``docs`` directory:
83-
95+
8496
`conda activate python_github_tutorial`
85-
86-
`make html`
97+
98+
`cd python_github_tutorial/docs`
99+
100+
`make html`
101+
102+
You can find the docs `html` build here -> `docs/_build/html`. When in the `docs/_build/html` directory, click on any `html` file and it will open the full docs.

environment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ dependencies:
88
- pytest
99
- pip
1010
- mock
11-
- ipython
12-
- nbconvert
13-
- jupyter
11+
- ipython
12+
- nbconvert
13+
- jupyter
1414
- pygments
1515
- numpydoc
16-
- sphinx=6.1.1
16+
- sphinx
1717
- sphinx_rtd_theme
1818
- nbsphinx
1919
- sphinxcontrib

0 commit comments

Comments
 (0)