Closed aaronmaas closed 3 years ago
Implemented in the latest commit, thanks!
I think I'll change that back - I'm using progressbar2-3.51.4 and there, maxval
is deprecated and throws a warning that I should use max_value
instead. @aaronmaas maybe you nee to update the version progressbar on your machine. Let me know if that helps.
/home/ekaterina/Documents/000_envs/forallpurposes/lib/python3.6/site-packages/progressbar/bar.py:296: DeprecationWarning: The usage of
maxval
is deprecated, please usemax_value
instead 'max_value
instead', DeprecationWarning)
I added a version requirement to setup.py and requirements.txt for progressbar2 now. It should be >=3.51.4 - I am closing this issue unless the error comes back with new installations.
What needs to be created or improved?
While calling sample_flare_recovery() the implemented Class ProgressBar from the package progress bar raises an error notification. Likely this bug only occurs while using jupyter notebook.
Code Example:
`import altaipony from altaipony.lcio import from_mast
Fetch a light curve from MAST
flc = from_mast("KIC 9726699", c=9, mode="LC", mission="Kepler")
De-trend with a Sav-Gol filter
flc = flc.detrend("savgol")
Do the injection-recovery
flc, fake_flc = flc.sample_flare_recovery(inject_before_detrending=False, iterations=10, fakefreq=.001, ampl=[1e-4, 0.5],dur=[.001/6., 0.1/6.])`
`` As the function gets called it will produce the following notification:
TypeError Traceback (most recent call last)