You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also addresses #35 (git tracking Jupyter notebooks).
The new conda environment substantially improves over the previous version, with a more consolidated HDF5 version (1.10.6) and upgrading JupyterLab to v3.
# HSP2, Hydrologic Simulation Program Python (HSPsquared)
2
2
3
3
HSPsquared or HSP2 is a Python version of [Hydrological Simulation Program - FORTRAN (HSPF)](https://www.epa.gov/ceam/hydrological-simulation-program-fortran-hspf).
4
-
Currently it supports the major hydrology modules, and water quality modules are
5
-
being developed.
4
+
HSP2 currently supports all HSPF hydrology modules and major water quality modules. Support for specialty modules is currently in progress. See our [Release Notes](https://github.com/respec/HSPsquared/releases) for up-to-date details.
6
5
7
6
Read our wiki for more information on our motivation and goals for HSP2:
8
7
-[Wiki Home & HSP2 Goals](https://github.com/respec/HSPsquared/wiki)
@@ -11,34 +10,25 @@ Read our wiki for more information on our motivation and goals for HSP2:
11
10
12
11
[Project slides (January 2017)](https://github.com/respec/HSPsquared/blob/archivePy2/Why%20HSP2%20(EAA).pdf) also provide helpful background.
13
12
14
-
HSPsquared is copyrighted 2020 by RESPEC and released under the GNU Affero General
15
-
Public License.
16
-
17
-
18
-
**ANNOUNCEMENT**
19
-
20
-
HSP2 code has been updated to Python 3 in April 2020. Legacy Python 2 code is available in our [`archivePy2`](https://github.com/respec/HSPsquared/tree/archivePy2) branch.
13
+
HSPsquared is copyrighted 2020 by RESPEC and released under the GNU Affero General Public License.
21
14
22
15
23
16
## Repository Directories
24
17
25
-
**[HSP2](HSP2)** contains the hydrology codes converted from HSPF and the main programs
26
-
to run HSP2.
18
+
**[HSP2](HSP2)** contains the hydrology and water quality code modules converted from HSPF, along with the main programs to run HSP2.
27
19
28
20
**[HSP2notebooks](HSP2notebooks)** contains tutorials and useful Juptyer Notebooks.
29
21
30
-
**[HSP2tools](HSP2tools)** contains supporting software modules such as the code to convert
31
-
legacy WDM and UCI files to HDF5 files for HSP2, and to provide additional new
32
-
and legacy capabilities.
22
+
**[HSP2tools](HSP2tools)** contains supporting software modules such as the code to convert legacy WDM and UCI files to HDF5 files for HSP2, and to provide additional new and legacy capabilities.
**[tests](tests)** contains unit testing code for testing code conversion (`tests/convert/conversion_test.py`) and code performance.
37
27
38
28
39
-
## Installation Instructions
29
+
## Installation
40
30
41
-
HSP2 is designed to work with Python 3.6, 3.7 and 3.8.
31
+
HSP2 is designed to work with Python >3.6 (since April 2020). We **recommend Python 3.8**. Legacy Python 2 code is available in our [`archivePy2`](https://github.com/respec/HSPsquared/tree/archivePy2) branch.
42
32
43
33
Follow these steps to install.
44
34
@@ -57,28 +47,24 @@ Place your copy of the HSPsquared folder in any convenient location on your comp
57
47
Although HSP2 can be run from the default `base` environment created by Anaconda,
58
48
it can be helpful to create a leaner custom environment.
59
49
60
-
We have provided an [`environment.yml`](environment.yml) file, which lists all primary dependencies, to help. Create a `hsp2_py38` environment either with the **Import** button on [Anaconda Navigator's Environments tab](https://docs.anaconda.com/anaconda/navigator/overview/#environments-tab), or use this [Conda](https://conda.io/docs/) command in your terminal or console, replacing `path/environment.yml` with the full file pathway to the `environment.yml` file in the local cloned repository.
50
+
We have provided an [`environment.yml`](environment.yml) file, which lists all primary dependencies, to help. Create a `hsp2_py38` environment either with the **Import** button on [Anaconda Navigator's Environments tab](https://docs.anaconda.com/anaconda/navigator/overview/#environments-tab), or use this [Conda](https://conda.io/docs/) command in your terminal or console, replacing `path/environment.yml` with the full file pathway to the `environment.yml` file in the local cloned repository.
61
51
62
-
```console
52
+
```shell
63
53
conda env create --file path/environment.yml
64
54
```
65
55
To update your environment, either use Anaconda Navigator, or run the following command:
NOTE 1: The [`environment_dev.yml`](environment_dev.yml) file provides an alternate environment that provides additional capabilities and newer libraries useful to the development team. It is tested to also work with the current HSP2 codebase and will likely serve as a preview of future updates to [`environment.yml`](environment.yml).
77
66
78
-
NOTE 2: We recommend using [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) to run our tutorial [Juptyer](https://jupyter.org/index.html) Notebooks in the [HSP2notebooks](HSP2notebooks/) folder. The following JupyterLab [extensions](https://jupyterlab.readthedocs.io/en/stable/user/extensions.html) are useful (but not required):
79
-
+[jupyter-matplotlib](https://github.com/matplotlib/ipympl), an interactive widget.
80
-
+[`jupyterlab/toc`](https://github.com/jupyterlab/jupyterlab-toc), Table of Contents.
81
-
+[qgrid2](https://github.com/quantopian/qgrid), for interactive sorting, filtering, and editing DataFrames
67
+
NOTE: The [`environment_dev.yml`](environment_dev.yml) file provides an alternate environment that provides additional capabilities and newer libraries useful to the development team. It is tested to also work with the current HSP2 codebase and will likely serve as a preview of future updates to [`environment.yml`](environment.yml).
82
68
83
69
84
70
#### 4. Add your HSPsquared Path to Anaconda sites-packages
@@ -97,4 +83,7 @@ You should now be able to run the Tutorials and create your own Jupyter Notebook
97
83
98
84
## Getting Started
99
85
100
-
We recommend looking over our [Understanding HSP2 Tutorial](HSP2notebooks/Tutorial1.md) then viewing or interactively running our [Introduction to HSP2 notebook](HSP2notebooks/Introduction.ipynb).
86
+
We recommend looking over our [Understanding HSP2 Tutorial](HSP2notebooks/Tutorial1.md) then viewing or interactively running our [Introduction to HSP2 notebook](HSP2notebooks/Introduction.ipynb) Jupyter Notebook.
87
+
88
+
We recommend using [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) to run our tutorial [Juptyer Notebooks](https://jupyter.org/index.html) in the [HSP2notebooks](HSP2notebooks/) folder, due to many additional built-in features and extensions. The following JupyterLab [extensions](https://jupyterlab.readthedocs.io/en/stable/user/extensions.html) are particularly useful:
- pip # first install as many requirements as possible with conda. https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#using-pip-in-an-environment
0 commit comments