Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Develop in Main in preparation for new release #167

Merged
merged 141 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
e78f84c
first cut at implementing other gener operations
PaulDudaRESPEC Oct 31, 2023
4431180
first draft of enhancement to allow output aggregated to daily, month…
PaulDudaRESPEC Nov 1, 2023
9c435e3
small clean-ups to fully implement GENER operations
PaulDudaRESPEC Nov 27, 2023
9bb8109
Added a couple R files to ignore to keep the repo clean when includin…
rburghol Nov 29, 2023
e1140fc
Merge pull request #124 from HARPgroup/devignore
PaulDudaRESPEC Dec 1, 2023
85ce951
Merge pull request #125 from respec/master
PaulDudaRESPEC Dec 15, 2023
fece38c
clean up details of ParseTable.csv
PaulDudaRESPEC Dec 15, 2023
fc9846e
add hdf5 file name to output message
PaulDudaRESPEC Dec 20, 2023
d2bc9cc
refinements to include multiple canopy layer enhancement
PaulDudaRESPEC Dec 20, 2023
274eaab
Create python-app.yml
rburghol Feb 12, 2024
dfa9e75
Update python-app.yml
rburghol Feb 12, 2024
34530b4
Update python-app.yml
rburghol Feb 12, 2024
26dd7aa
Update python-app.yml
rburghol Feb 12, 2024
4b938da
Update python-app.yml
rburghol Feb 12, 2024
aa625f3
Update python-app.yml
rburghol Feb 26, 2024
32bf2a7
Create python-app1.yml
rburghol Feb 26, 2024
23de13b
Update python-app.yml
rburghol Feb 26, 2024
b819471
Update python-app.yml
rburghol Feb 26, 2024
e15a76d
Update python-app.yml
rburghol Feb 26, 2024
2a05f92
delete superfluous workflow
Feb 26, 2024
3b718c0
add actions folder to see if it fixes
Feb 26, 2024
2f39354
Update python-app.yml
rburghol Feb 26, 2024
419dc23
Update python-app.yml
rburghol Feb 26, 2024
20009c6
disable the custom action yml to see if it still works (as tutorial s…
Feb 26, 2024
92941eb
Merge branch 'master' of github.com:HARPgroup/HSPsquared
Feb 26, 2024
40d52f5
Update python-app.yml
rburghol Feb 26, 2024
f996426
Update python-app.yml
rburghol Feb 26, 2024
c129dca
Update python-app.yml
rburghol Feb 26, 2024
2b5c89b
Update python-app.yml
rburghol Feb 26, 2024
238388e
add ptest
Feb 26, 2024
9fa2d9c
Merge branch 'master' of github.com:HARPgroup/HSPsquared
Feb 26, 2024
411facc
Update python-app.yml
rburghol Feb 26, 2024
219716f
Update python-app.yml
rburghol Feb 26, 2024
790b18d
Update python-app.yml
rburghol Feb 26, 2024
c401751
Update python-app.yml
rburghol Feb 26, 2024
6fd649b
Update python-app.yml
rburghol Feb 27, 2024
c008638
Update environment.yml
rburghol Feb 27, 2024
f85f89d
Update environment.yml
rburghol Feb 27, 2024
c42de0b
Update python-app.yml
rburghol Feb 27, 2024
fe5bb14
Update python-app.yml
rburghol Feb 27, 2024
0ce080d
Create hsp2_dev_env
rburghol Feb 28, 2024
25cf2e8
Update python-app.yml
rburghol Feb 28, 2024
c607417
Update hsp2_dev_env
rburghol Feb 28, 2024
dc3270b
Update hsp2_dev_env
rburghol Feb 28, 2024
11b8a5a
dev environment test yml file
Feb 28, 2024
a769432
Update hsp2-install-dev.yml
rburghol Feb 28, 2024
3bd434f
Update hsp2-install-dev.yml
rburghol Feb 28, 2024
bb527e2
Update hsp2-install-dev.yml
rburghol Feb 28, 2024
30e4083
Update hsp2-install-dev.yml
rburghol Feb 28, 2024
3a4adff
dont save test h5 files
Feb 28, 2024
40aac69
initial set of tests for CI
Feb 28, 2024
d2aeef6
Merge pull request #90 from HARPgroup/testx
rburghol Feb 28, 2024
96bdf1e
update test file with hsp2 run
Feb 28, 2024
3ac6b9c
add test of hdf5 exists
Feb 28, 2024
6dc9b84
add test of hdf5 exists
Feb 28, 2024
19c6d2f
rename pytest
Feb 28, 2024
a9001cb
rename pytest call
Feb 28, 2024
42363f9
add a failing test
Feb 28, 2024
577c850
format
Feb 28, 2024
ad51109
disble purposely failing test
Feb 28, 2024
9e09e61
adding new dev config from dependency_options branch
Feb 29, 2024
cfb12e5
set py to 3.11 in dev
Feb 29, 2024
98b3e21
info
Feb 29, 2024
780c50f
rename scripts to show install env (i.e. pip / conda)
Feb 29, 2024
45b48db
attempt a conda install tester
Feb 29, 2024
f79bc56
attempt a conda install tester
Feb 29, 2024
e3dfaf0
attempt a conda install tester
Feb 29, 2024
4f31719
try looking for hsp2 in the CONDA path
Feb 29, 2024
71f58d8
call hsp wihtout path
Feb 29, 2024
5b6ca0a
Merge pull request #144 from respec/master
PaulDudaRESPEC Mar 5, 2024
ed3f2a5
merge in minor additions
PaulDudaRESPEC Mar 6, 2024
760b180
merging in changes from HARPgroup
PaulDudaRESPEC Mar 6, 2024
2df5a94
Merge branch 'develop' into testx
rburghol Mar 6, 2024
5e54508
Merge pull request #142 from HARPgroup/testx
PaulDudaRESPEC Mar 6, 2024
0bd5030
only run tests on 3 branches
Mar 18, 2024
34a56c8
Merge pull request #148 from HARPgroup/testx
PaulDudaRESPEC Apr 2, 2024
e84924b
ACIDPH.py is not yet valid python, preserving wip as text
austinorr Apr 19, 2024
07d1b78
prepare for disabling the jit during tests to enable code coverage
austinorr Apr 19, 2024
1decc4f
tests passing for IWater and PWater under pytest with ~70% code coverage
austinorr Apr 19, 2024
7bcae32
(feat) change to a pyproject.toml to publish to pypi
timcera Apr 22, 2024
43af3bc
(ci) update github workflows to work with pyproject.toml.
timcera Apr 23, 2024
1dca5ba
(fix) replaced mando with cltoolbox
timcera Apr 23, 2024
a6abcfb
Merge pull request #151 from Geosyntec/ipwater-tests
PaulDudaRESPEC Apr 23, 2024
3a40125
Merge pull request #152 from timcera/pypi_package
PaulDudaRESPEC Apr 23, 2024
681b842
README.md -- restore this file temporarily while resolving a merge co…
PaulDudaRESPEC Apr 23, 2024
d149b7d
Merge pull request #153 from respec/master
PaulDudaRESPEC Apr 23, 2024
fd31a26
Delete README.md after resolving merge conflict
PaulDudaRESPEC Apr 23, 2024
14d1f6b
misc fixes
timcera Apr 30, 2024
9b73aac
fixes for publish.py and pyproject.toml
timcera Apr 30, 2024
bfe5ef9
this action does not work, it hangs indefinately
austinorr Apr 30, 2024
3886a15
this action is not yet needed, should likely be a simple matrix in th…
austinorr Apr 30, 2024
2e414f9
Merge pull request #160 from Geosyntec/cleanup-actions
PaulDudaRESPEC Apr 30, 2024
059ea16
OXRX_Class.py -- explicitly set tcginv and len_ to avoid future issue…
PaulDudaRESPEC May 1, 2024
9e8abaa
Test10 -- fixed sedment option flag in the UCI
PaulDudaRESPEC May 1, 2024
63b8e86
utilities.py and io.py -- small improvements to get into the next rel…
PaulDudaRESPEC May 1, 2024
dc02461
Merge pull request #159 from timcera/fix
PaulDudaRESPEC May 3, 2024
01497f1
readUCI.py -- go back to old way fix_df for now
PaulDudaRESPEC May 3, 2024
9f89944
added pytest to deps and python application ci job
austinorr Apr 29, 2024
6e80095
tests/test10/HSP2results fails due to df.append in readUCI line 86; p…
austinorr Apr 29, 2024
312bec5
rm no-op pytest since there is now an actual test to call
austinorr Apr 29, 2024
16fd3ae
use this to manually hide personal files; todo: rm all the personal p…
austinorr May 4, 2024
58cae81
(fix) cleanup the utilities.versions function so that it can't fail a…
austinorr May 4, 2024
9b553f7
add pytest apparatus that works with test10, and hopefully others. mu…
austinorr May 4, 2024
566a1a9
refactor commands for reuse in test helpers
austinorr May 4, 2024
ddf80fd
lint pyproject.toml
austinorr May 4, 2024
5396ea2
support pandas versions 1.5-2+
austinorr May 5, 2024
d88ac0a
fix packaging bug that excluded data files for HSP2tools
austinorr May 5, 2024
b30eea0
parallelize ci tests & lint; test python 3.9-3.12; test pandas<1.5 & …
austinorr May 5, 2024
8da75e9
fix test suite to include 3.9
austinorr May 5, 2024
a487020
fix quotes for pandas version
austinorr May 5, 2024
e584386
speed up tests not under coverage
austinorr May 5, 2024
99e8d1e
Merge pull request #156 from Geosyntec/pytest
PaulDudaRESPEC May 6, 2024
140cc60
just hsp2/om specific stuff
May 6, 2024
bec246c
just hsp2/om specific stuff
May 6, 2024
ff7cf97
special actions and support files state and om
May 6, 2024
059263f
special actions and support files state and om
May 6, 2024
5ffd306
change endings for HYDR.py
May 6, 2024
ff0e799
change endings for SEDTRN.py
May 6, 2024
ac90d34
change endings for main.py
May 6, 2024
2ff7f56
change endings for state.py
May 6, 2024
c571c9d
added test10specl.uci
May 7, 2024
3006ec7
Merge changes that were reverted from https://github.com/respec/HSPsq…
May 7, 2024
8396388
load specific functions instead of blanket import
May 7, 2024
c882806
load functions for ModelObject and SimTimer
May 7, 2024
8e61c34
load required functions for state into om
May 7, 2024
28ab858
load required functions for state/om/specl explicitly into HYDR and S…
May 7, 2024
0e1258c
corrected typo in the comment/header line in the specl UCIs
May 7, 2024
8437dc2
added new UCI test from Paul
May 8, 2024
ed9f6d1
restored reversion for SEDTRN specl execution, fixed precision mismat…
May 8, 2024
3d40f9b
tests for spec actions
austinorr May 8, 2024
a189d50
Merge pull request #100 from Geosyntec/spec-act
rburghol May 8, 2024
29fc5f2
better example in comments, no functional change
May 9, 2024
041e037
Removed global ModelObject class attriutes. Fixed special actions tre…
May 9, 2024
c1af3f9
cleaned up a couple remaining import statements
May 10, 2024
cf00586
Renamed ModelConstant to ModelVariable since ModelConstant should be …
May 14, 2024
91f1d60
Deleeted superfluous files
May 14, 2024
a4b2b1d
Deleted superfluous files
May 14, 2024
460f9f7
Merge pull request #161 from HARPgroup/develop-spec-lean
PaulDudaRESPEC May 20, 2024
a6c1b76
Move to single python package "hsp2"
timcera May 22, 2024
9f542a8
Merge pull request #166 from timcera/develop
PaulDudaRESPEC May 24, 2024
7a88a65
remove some unneeded files prior to merging into main, comment out so…
PaulDudaRESPEC May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions .github/workflows/hsp2-pip-install-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Python application

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "develop", "develop-specact" ]

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --ignore=F821 --show-source --statistics --exclude=build/*
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

test-pytest:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
pandas-version: [""]
include:
- python-version: "3.11"
pandas-version: "pandas>2.0"
coverage: true
- python-version: "3.11"
pandas-version: "pandas>1.5,<2.0"
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install hsp2
run: |
# install the hsp2 executable
pip install .[dev]
- if: ${{ matrix.pandas-version }}
run: pip install "${{ matrix.pandas-version }}"
- if: ${{ matrix.coverage }}
run: |
# python coverage
NUMBA_DISABLE_JIT=1 pytest --cov --cov-branch --cov-report term-missing
- if: ${{ ! matrix.coverage }}
run: pytest

test-cmd:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install hsp2
run: |
# install the hsp2 executable
pip install .
- name: Run hsp2
run: |
# TODO: find much shorter test case.
hsp2 import_uci ./tests/test10/HSP2results/test10.uci _temp_test10.h5
hsp2 run _temp_test10.h5

13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Manual
_no_git*

# Editors & IDEs
.vscode
.vs
Expand Down Expand Up @@ -42,6 +45,7 @@ htmlcov
*.log
*.hbnhead
*.units.dbf
*_temp*.h5

# Translations
*.mo
Expand All @@ -62,6 +66,11 @@ tests/GLWACSO/HSP2results/hspp007.hdf
tests/GLWACSO/HSPFresults/hspf006.HBN
tests/GLWACSO/HSP2results/hspp007.uci
tests/test_report_conversion.html
tests/land_spec/hwmA51800.h5
tests/testcbp/HSP2results/PL3_5250_0001.h5

# Omit big files
tests/**/*.h5
tests/testcbp/HSP2results/*.csv

# R files
.Rdata
.Rhistory
18 changes: 0 additions & 18 deletions HSP2/SPECL.py

This file was deleted.

10 changes: 0 additions & 10 deletions HSP2/__init__.py

This file was deleted.

10 changes: 5 additions & 5 deletions HSP2_Driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@

if file_ext.upper() == "UCI":
h5_name = filename[:-3] + "h5"
from HSP2tools.readUCI import readUCI
from hsp2.hsp2tools.readUCI import readUCI
readUCI(filename, h5_name)
# readUCI('HSPF.uci', 'test.h5')

if file_ext.upper() == "WDM":
h5_name = filename[:-3] + "h5"
from HSP2tools.readWDM import readWDM
from hsp2.hsp2tools.readWDM import readWDM
readWDM(filename, h5_name)
# readWDM('GRICM.wdm', 'test.h5')
# readWDM('ZUMBROSCEN.WDM', 'test.h5')

if file_ext.upper() == ".H5":
from HSP2.main import main
from HSP2IO.hdf import HDF5
from HSP2IO.io import IOManager
from hsp2.hsp2.main import main
from hsp2.hsp2io.hdf import HDF5
from hsp2.hsp2io.io import IOManager

hdf5_instance = HDF5(filename)
io_manager = IOManager(hdf5_instance)
Expand Down
14 changes: 0 additions & 14 deletions HSP2tools/__init__.py

This file was deleted.

Loading
Loading