Closed TimSlendebroek closed 3 years ago
@TimSlendebroek I think you had it right, just you need to pass the options:
ods = ODS()
ods.open('profiles_db_ccfe', pulse=81499, options={'tok':'d3d', 'db':'08'})
Notice that I modified your function so that by default it returns the same number of points as the original database
@TimSlendebroek can you please add a proper docstring to the profile_db_to_ODS
function?
Nice job, by the way :)
Attempt at gathering tokamak profile data from 'tokamak-profiledb.ccfe.ac.uk:8000' using machine mappings.
I tested the function profile_db_to_ODS() in an OMFIT session with success:
but seem to get into trouble when running this through (after reloading machine mappings):
with mappings script (/home/slendebroekt/GIT_projects/omas/omas/machine_mappings/profiles_db_ccfe.py):