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

Update to packaging push plus fixes #158

Closed
wants to merge 88 commits into from
Closed

Conversation

timcera
Copy link
Contributor

@timcera timcera commented Apr 30, 2024

I was sitting on these changes because I couldn't find solutions to two problems. So thought to put this in a pull request for review and maybe someone will be able to figure them out.

Another reason to get this out there, is for the next two weeks or so I won't be able to work on this and I didn't want to slow progress down.

"pytest" works to test the new PWATER and IWATER tests. They both pass.

THE PROBLEMS:

  1. Right now, using python 3.10 and a "pip install ." with the code in this pull request, the "readUCI" function in tests/test05/HSP2results/CompareHSP2.ipynb will only bring in the PERLND operation. IMPLND and RCHRES are ignored. No errors. I can't figure it out.

  2. In tests/test10/HSP2results/TEST10_hsp2_compare.ipynb, when it is calculating RQUAL I get the error:

...
File [~/anaconda3/envs/hsp2_310/lib/python3.10/site-packages/HSP2/RQUAL.py:225](http://localhost:8888/home/tim/anaconda3/envs/hsp2_310/lib/python3.10/site-packages/HSP2/RQUAL.py#line=224), in rqual(io_manager, siminfo, uci, uci_oxrx, uci_nutrx, uci_plank, uci_phcarb, ts, monthdata)
    218 		ts['BINV'] = initm(siminfo, ui_plank, binvfg, 'MONTHLY[/BINV](http://localhost:8888/BINV)', binv_init)
    220 #---------------------------------------------------------------------
    221 # initialize & run integerated WQ simulation:
    222 #---------------------------------------------------------------------
    224 (err_oxrx, err_nutrx, err_plank, err_phcarb) \
--> 225 	= _rqual_run(siminfo_, ui, ui_oxrx, ui_nutrx, ui_plank, ui_phcarb, ts)
    227 #---------------------------------------------------------------------
    228 # compile errors & return:
    229 #---------------------------------------------------------------------
    231 (errors, ERRMSGS) = _compile_errors(NUTFG, PLKFG, PHFG, err_oxrx, err_nutrx, err_plank, err_phcarb)

SystemError: CPUDispatcher(<function _rqual_run at 0x7f67104b8ee0>) returned NULL without setting an exception

PaulDudaRESPEC and others added 30 commits October 31, 2023 16:05
…g R scripts or even running R inside the dirs
Added a couple R files to ignore to keep the repo clean when includin…
recent small fixes into develop
First attempt to initiate automated testing
try to change to node20 from node16
2nd try node.js
use v4 instead of v3 - does this fix node js 20 issue?
try v5 since v4 still seems to be deprecated even though the docs "seem" to say going from 3 to 4 will fix.
ignore missing variables (since `_version` is loaded via an include).  to fix CI script failure with code `F821` see respec#135 (comment)
ignore ACIDPH.py because it uses a weird sci notation format AC (i.e. I think `rkal1  = 1.03d-5` should be `rkal1  = 1.03e-5` etc)
Burgholzer and others added 28 commits February 29, 2024 10:18
merge recent minor changes to setup.py from tim cera into develop branch
Testing framework base deployment
* Moved metadata from setup.py to pyproject.toml and
  removed setup.py
* Moved README.md to README.rst and rewrote.
* Made a VERSION file to contain version number.
  + Allows version number to be read by pyproject.toml.
  + Refactored _version.py to read version number from
    VERSION file.
* Made a publish.py to ease and document publishing to
  pypi.
mando used old import locations for Collections.
Test case for IWater and PWater subroutines
(feat) change to a pyproject.toml to publish to pypi
push contributing.md to develop
Fixes
* Allow the HDF filename to be passed to main function instead
  of only io_manager instance.  Having main only accept io_manager
  broke all ipython notebooks.
* Removed "print(table)" from readUCI which I think was a
  debugging statement.
* Removed what I hope are unnecessary "iter(llines)" statements
  from readUCI.
IPython Notebook Fixes
* Edited some of the ipython notebooks that tried to find an
  element time-series with an old name, for example tried to
  find "SURO" instead of the new name "SURO_sum".
* Edited some of the ipython notebooks so that filenames were
  case sensitive.
Deprecations
* The append function is no longer available for DataFrames and
  changed to pd.concat form.
* In pandas 3.0, to_hdf will require the "key" to be a keyword
  argument instead of a positional argument and made that change
  now to silence the deprecation message.
Format
* Removed trailing spaces from some files.
* Fixed not a multiple of 4 spaces indentation in at least one file.
* Renamed files with spaces in their names, replacing spaces with "_".
Documentation
* Additional edits to the README.rst.
* Reshaped some docstrings into Numpy format.
@timcera
Copy link
Contributor Author

timcera commented Apr 30, 2024

I messed up the pull request so I am withdrawing and looks like I need to rebase.

@timcera timcera closed this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants