respec / HSPsquared

Hydrologic Simulation Program Python (HSPsquared)
GNU Affero General Public License v3.0
43 stars 17 forks source link

HSP2 unhandled error for standard Test10 #48

Closed steveskrip closed 3 years ago

steveskrip commented 3 years ago

When running Test10 (slightly modified to export output data to an HBN file), I can successfully create an .h5 file using readUCI and readWDM. Then, when running main, I get the following error messaging when processing the PSTEMP module


--------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-4-ff67a3b4c34f> in <module>
----> 1 main(hdfname, saveall=True)

c:\Users\sskripnik\Documents\GitHub\HSPsquared\HSP2\main.py in main(hdfname, saveall)
     71 
     72                 ############ calls activity function like snow() ##############
---> 73                 errors, errmessages = function(store, siminfo, ui, ts)
     74                 ###############################################################
     75 

c:\Users\sskripnik\Documents\GitHub\HSPsquared\HSP2\PSTEMP.py in pstemp(store, siminfo, uci, ts)
     30 
     31         ui = make_numba_dict(uci)
---> 32         TSOPFG = ui['TSOPFG']
     33         AIRTFG = int(ui['AIRTFG'])
     34 

~\Anaconda3\envs\hsp2_py37\lib\site-packages\numba\typed\typeddict.py in __getitem__(self, key)
    146             raise KeyError(key)
    147         else:
--> 148             return _getitem(self, key)
    149 
    150     def __setitem__(self, key, value):

~\Anaconda3\envs\hsp2_py37\lib\site-packages\numba\dictobject.py in impl()
    736         ix, val = _dict_lookup(d, castedkey, hash(castedkey))
    737         if ix == DKIX.EMPTY:
--> 738             raise KeyError()
    739         elif ix < DKIX.EMPTY:
    740             raise AssertionError("internal dict error during lookup")

KeyError: 

Files and jupyter notebook are located here: https://github.com/LimnoTech/HSPsquared/tree/develop-WaterQuality/tests/test10b/HSP2results

@aufdenkampe

PaulDudaRESPEC commented 3 years ago

@steveskrip @aufdenkampe Hmm, I committed a fix for that one on Dec 1st (to HSPSquared-Develop). Maybe it's time to synch up again?

aufdenkampe commented 3 years ago

@PaulDudaRESPEC, indeed, my last git merge upstream/develop of our repo was on Nov. 30, so I had indeed missed that and other recent commits.

@steveskrip, I just pulled these commits into our repo!

I'll close for now, and we can reopen if anything else comes up.