Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_z_parameters for DIII-D #255

Merged
merged 6 commits into from
Sep 4, 2024
Merged

Conversation

yumouwei
Copy link
Collaborator

@yumouwei yumouwei commented Aug 5, 2024

Problem

  • zcur and zcur_normalized failed testing with data (mismatch with SQL table).

Analysis of the problem

  1. zcur signal is fetched from PTDATA: VPSZP. I took a look at that pointname in ReviewPlus and the signal looks identical to the output of disruption-py.

image
image

In the docstring of the MATLAB script it mentioned that they previously used a wrong pointname and corrected it afterward. I wonder if the stored SQL table data was fetched from that address.

% Revision history
% 2019/09/04 - RSG; We found out from Jayson Barr that we misunderstood
% the PCS pointnames. The correct pointname is "vpszp".

Implemented changes

  • Broke down nested try-except block.
  • Added docstring.

Problem to be addressed

  • Right now z_prog, z_error and z_error_normalized are always returned as arrays of nan due to the quoted reason below. Should we keep these parameters or remove them from the outputs?

% 2019/09/23 - RSG; On DIII-D the plasma control system uses isoflux
% control to control the plasma shape and position. It does
% NOT use zcur control. Therefore, the PCS does not have a
% programmed vertical position. This this routine will now
% always return an arrays of NaN for z_prog, z_error, and
% z_error_norm.

@yumouwei yumouwei requested a review from gtrevisan August 5, 2024 20:49
@gtrevisan
Copy link
Member

should I go ahead and merge?

@yumouwei
Copy link
Collaborator Author

Go ahead but we need to remember to discuss the point with z_prog, z_error and z_error_normalized with Cristina

@gtrevisan gtrevisan merged commit 01bddc5 into dev Sep 4, 2024
8 checks passed
@gtrevisan gtrevisan deleted the wei/d3d-fix-get-z-parameters branch September 4, 2024 18:45
@gtrevisan gtrevisan mentioned this pull request Sep 11, 2024
@gtrevisan gtrevisan changed the title DIII-D fix get_z_parameters Fix get_z_parameters for DIII-D Sep 16, 2024
@gtrevisan gtrevisan added the machine: DIII-D Related to the DIII-D tokamak label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
machine: DIII-D Related to the DIII-D tokamak
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants