gafusion / omas

Ordered Multidimensional Array Structure
http://gafusion.github.io/omas
MIT License
32 stars 15 forks source link

Add option to remove integrator drift #209

Closed odstrcilt closed 2 years ago

odstrcilt commented 2 years ago

Flux loop signals and magnetics probe signals can have nonnegligible errors caused by the analog integrator drift. Assuming that the drift is linear in time, this will set signals back to zero after the end of the discharge.

orso82 commented 2 years ago

@odstrcilt perhaps you forgot to commit the remove_integrator_drift function?

odstrcilt commented 2 years ago

@orso82 do you have any guess what is causing the regression test to fail? It does not seem to be related to any changes done by me.

smithsp commented 2 years ago

@odstrcilt It looks like you ended up with a branch of omas that depends on a new DD from IMAS, where the EC launchers have changed structure. @orso82 Does this imply that we need to address the launchers on omas now?

orso82 commented 2 years ago

Yes @smithsp we made changes on a OMFIT branch, but we still need to address this on the OMAS side. Mostly it's about the regression tests and machine mappings.

smithsp commented 2 years ago

Need to merge with master.

smithsp commented 2 years ago

Still need to merge with master branch.

smithsp commented 2 years ago

@odstrcilt When @orso82 originally looked into fetching NSTX data using omas, he had gone to great lengths to compare what was fetched to the existing k-files. How do these changes affect that comparison and validation?

orso82 commented 2 years ago

@odstrcilt in case it's needed, you can look at the https://github.com/gafusion/OMFIT-source/blob/unstable/modules/EFITtime/SCRIPTS/NSTX/update_keqdsk_from_omas.py script, and in particular use the OMFITkeqdsk.compare_omas_constraints function.

smithsp commented 2 years ago

Ping @odstrcilt to compare to previous k-files.

odstrcilt commented 2 years ago

I have tested shot 133964 at 285ms

Here is compared OMAS case with and without drift substraction image

Here is OMAS with drift subtraction compared to EFIT01 kfile image

Here is OMAS without drift subtraction compared to EFIT01 kfile image

I will try to plot also timetraces...

odstrcilt commented 2 years ago

@orso82 can we merge it?

orso82 commented 2 years ago

A