Skip to content

Commit

Permalink
(fix) replaced mando with cltoolbox
Browse files Browse the repository at this point in the history
mando used old import locations for Collections.
  • Loading branch information
timcera committed Apr 23, 2024
1 parent 43af3bc commit 1dca5ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions HSP2tools/HSP2_CLI.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mando
import cltoolbox

from HSP2.main import main as hsp2main
from HSP2tools.readUCI import readUCI
Expand All @@ -7,7 +7,7 @@
from HSP2IO.io import IOManager


@mando.command(doctype="numpy")
@cltoolbox.command()
def run(hdfname, saveall=True, jupyterlab=False):
"""Run a HSPsquared model.
Expand All @@ -26,7 +26,7 @@ def run(hdfname, saveall=True, jupyterlab=False):
hsp2main(io_manager, saveall=saveall, jupyterlab=jupyterlab)


@mando.command(doctype="numpy")
@cltoolbox.command()
def import_uci(ucifile, h5file):
"""Import UCI and WDM files into HDF5 file.
Expand Down Expand Up @@ -57,7 +57,7 @@ def import_uci(ucifile, h5file):


def main():
mando.main()
cltoolbox.main()


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Use the following `conda create`_ command in your terminal or console,
Install the necessary and optional packages for HSP2 in the new environment:

```console
conda install -c conda-forge -n hsp2_310 mando numba pandas pytables
conda install -c conda-forge -n hsp2_310 cltoolbox numba pandas pytables
conda install -c conda-forge -n hsp2_310 h5py jupyterlab matplotlib notebook
```

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name = "hsp2"
dynamic = ["version", "readme"]
description = "Hydrological Simulation Program - Python"
dependencies = [
"mando",
"cltoolbox",
"numba",
"pandas",
"tables"
Expand Down

0 comments on commit 1dca5ba

Please sign in to comment.