I installed omas 0.44.1 with pip. The command v = ods_sample() fails:
python3 v0.44.1
~/OMFIT-source 53 : python
Python 3.7.3 (default, Mar 30 2019, 03:37:43)
[Clang 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
/Users/smithsp/.pyhistory
>>> import omas
>>> import omas.omas_sample
>>> omas.omas_sample.ods_sample()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/omas/omas_sample.py", line 35, in ods_sample
ods = eval(ds)(ods)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/omas/omas_sample.py", line 69, in equilibrium
eq = load_omas_json(imas_json_dir + '/../samples/sample_equilibrium_ods.json', consistency_check=False)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/omas/omas_json.py", line 70, in load_omas_json
with open(filename, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/omas/imas_structures/../samples/sample_equilibrium_ods.json'
python2 v0.44.2
>>> import omas
^[[A>>> import omas.omas_sample
>>> omas.omas_sample.ods_sample()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/omas/omas_sample.py", line 35, in ods_sample
ods = eval(ds)(ods)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/omas/omas_sample.py", line 69, in equilibrium
eq = load_omas_json(imas_json_dir + '/../samples/sample_equilibrium_ods.json', consistency_check=False)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/omas/omas_json.py", line 70, in load_omas_json
with open(filename, 'r') as f:
IOError: [Errno 2] No such file or directory: u'/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/omas/imas_structures/../samples/sample_equilibrium_ods.json'
>>> omas.__version__
'0.44.2'
I was going to use this to demonstrate OMFITcollection for #74 .
I installed omas 0.44.1 with pip. The command
v = ods_sample()
fails: python3 v0.44.1python2 v0.44.2
I was going to use this to demonstrate
OMFITcollection
for #74 .