8000 problems with the surge calculations · Issue #13 · gpagliuca/pyfas · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

problems with the surge calculations #13

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

Open
gpagliuca opened this issue Jan 20, 2017 · 0 comments
Open

problems with the surge calculations #13

gpagliuca opened this issue Jan 20, 2017 · 0 comments
Labels

Comments

@gpagliuca
Copy link
Owner

fa.gists.surge_calc(data.index, data['21mm'], drain)

AttributeError Traceback (most recent call last)
in ()
----> 1 fa.gists.surge_calc(data.index, data['21mm'], drain)

C:\Apps\anaconda\lib\site-packages\pyfas\gists.py in surge_calc(time_series, liq_flowrate, drain)
6 def surge_calc(time_series, liq_flowrate, drain):
7 dt = np.diff(time_series)
----> 8 dt.units = pq.h
9 surge = (np.convolve(liq_flowrate, 1)[1:]*liq_flowrate.units-drain)*dt
10 surge.base[surge < 0] = 0

AttributeError: 'numpy.ndarray' object has no attribute 'units'

@gpagliuca gpagliuca added the bug label Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0