You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new issue is related to the new tests/data.py. Do we need to add the Voyager_data folder to setup.py somehow?
$ python test_h52fil.py
Bad key "ckend" on line 1 in
/Users/jeenriquez/.matplotlib/matplotlibrc.
You probably need to get an updated matplotlibrc file from
http://github.com/matplotlib/matplotlib/blob/master/matplotlibrc.template
or from the matplotlib source distribution
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/blimpy-1.3.4-py2.7.egg/tests/Voyager_data/Voyager1.single_coarse.fine_res.h5
Traceback (most recent call last):
File "test_h52fil.py", line 29, in <module>
test_h52fil_conversion()
File "test_h52fil.py", line 16, in test_h52fil_conversion
bl.h52fil.make_fil_file(voyager_h5, new_filename='test.fil')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/blimpy-1.3.4-py2.7.egg/blimpy/h52fil.py", line 41, in make_fil_file
fil_file = Waterfall(filename, max_load = max_load)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/blimpy-1.3.4-py2.7.egg/blimpy/waterfall.py", line 125, in __init__
load_data=load_data, max_load=max_load)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/blimpy-1.3.4-py2.7.egg/blimpy/file_wrapper.py", line 753, in open_file
raise IOError("No such file or directory: " + filename)
IOError: No such file or directory: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/blimpy-1.3.4-py2.7.egg/tests/Voyager_data/Voyager1.single_coarse.fine_res.h5
The text was updated successfully, but these errors were encountered:
after modifying some imports (removing relative (from . import bla) I'm able to run the test file directly:
λ HDF5_PLUGIN_PATH=../.lib PYTHONPATH=.. ../.venv3/bin/python test_h52fil.py
blimpy.waterfall INFO Conversion time: 0.11sec
blimpy.file_wrapper WARNING Selection size of 0.06 GB, exceeding our size limit 0.00 GB. Instance created, header loaded, but data not loaded, please try another (t,v) selection.
blimpy.waterfall INFO Detecting high frequency resolution data.
blimpy.waterfall INFO Using 1 n_blobs to write the data.
blimpy.waterfall INFO Reading 1 of 1
blimpy.waterfall INFO Conversion time: 0.19sec
blimpy.waterfall INFO Conversion time: 0.12sec
It looks like you run the test from the source checkout but it is importing blimpy code from an older instllation?
forcing the PYTHONPATH to your blimpy source folder should solve this issue. An alternative is to bundle the test files with the installation, which is probably not what you want since it is quite big.
This new issue is related to the new tests/data.py. Do we need to add the Voyager_data folder to setup.py somehow?
The text was updated successfully, but these errors were encountered: