Open ericthewizard opened 1 year ago
Now 17 tests are failing.
(base) Jamess-MBP:~ jwl$ grep failed mms_eis_results
test_angle_angle_load_simple: failed "Problem with EIS angle-angle?" (0.102996 seconds)
test_ang_ang_datatype_electron: failed "Problem with EIS angle-angle with datatype electronenergy" (0.083625 seconds)
test_ang_ang_datatype_phxtof: failed "Problem with EIS angle-angle datatype PHxTOF" (0.084161 seconds)
test_ang_ang_data_rate: failed "Problem with EIS angle-angle burst mode?" (0.082046 seconds)
test_ang_ang_data_units: failed "Problem with EIS angle-angle data_units keyword" (0.080630 seconds)
test_ang_ang_diffprobe: failed "Problem with EIS angle-angle when probe is set" (0.087080 seconds)
test_ang_ang_energychan: failed "Problem with EIS angle-angle energy_chan keyword" (0.087853 seconds)
test_ang_ang_extof_helium: failed "Problem with EIS angle-angle with ExTOF oxygen" (0.091405 seconds)
test_ang_ang_extof_oxygen: failed "Problem with EIS angle-angle with ExTOF oxygen" (0.081591 seconds)
test_brst_caps_pad: failed "Problem with EIS burst mode PAD (caps)" (0.102685 seconds)
test_brst_pad: failed "Problem with EIS burst mode PAD" (0.102711 seconds)
test_combined_datatypes_burst_pad: failed "Problem with combined datatypes (burst) PAD" (36.968805 seconds)
test_load_l2_spdf: failed "Problem loading L2 EIS data (SPDF)" (18.672478 seconds)
test_multi_probe_pad_burst: failed "Problem with multi-probe EIS PAD with burst data" (floating-point operand error) (70.093289 seconds)
test_multi_probe_pad_burst_suffix: failed "Problem with multi-probe PAD test with suffix" (floating-point operand error) (18.655800 seconds)
test_yrange_of_spectra: failed "Problem with yrange of L2 PHxTOF proton variable" (3.226860 seconds)
test_yrange_of_spectra_brst: failed "Illegal variable attribute: YRANGE." (14.566948 seconds)
I am getting 9 test failures. I was able to fix one (test_yrange_of_spectra_brst). The EIS cdf file version has changed (v. 3.0.0) and some variable names might have changed. The IDL test file mms_load_eis_ut__define.pro already had this note for parts of two tests: the following will break when the L1b files are updated to v3
... so I have commented that code.
For the remaining 8 tests that fail, we will probably need the help of the MMS team. I will write a detailed explanation of the problems below.
The following 8 tests still fail in file: mms_load_eis_ut--define.pro
A variable is missing from downloaded file. Perhaps the CDF structure has been changed and a different variable should be used in the test.
To reproduce: mms_eis_ang_ang, data_rate='brst', trange=['2015-10-16/13:00', '2015-10-16/13:10'] spd_data_exists('mms1_epd_eis_brst_l2_extof_proton_flux_omni', '2015-10-16/13:00', '2015-10-16/13:10')
Variable 'mms1_epd_eis_brst_l2_extof_proton_flux_omni' is missing from file mms1_epd-eis_brst_l2_extof_20151016125604_v3.0.0.cdf
To reproduce: start_date = '2015-12-16' timespan, start_date, 1, /day del_data, '*' mms_load_eis, data_rate='BRST', level='l2' mms_eis_pad, data_rate='BRST' spd_data_exists('mms1_epd_eis_brst_l2_extof_54-897keV_proton_flux_omni_pad_spin', '2015-12-16', '2015-12-16') get_data, 'mms1_epd_eis_brst_l2_extof_54-897keV_proton_flux_omni_pad_spin', data=d, dl=dl, l=l
This test requires variable 'mms1_epd_eis_brst_l2_extof_pitch_angle_t0' which exists, but it is completely empty. Perhaps there is no burst data for this particular date and a different date should be choosen.
test_brst_pad This is the same test as the previous test, but uses lower case letters for data_rate='brst'.
test_combined_datatypes_burst_pad Again missing burst data. Probably the selected time interval, ['2015-12-15', '2015-12-16'], does not contain the data required. Error message is: "No brst phxtof data is currently loaded for MMS4 for the selected time period"
To reproduce: mms_load_eis, probes=4, datatype=['extof', 'phxtof'], trange=['2015-12-15', '2015-12-16'], data_rate='brst' mms_eis_pad, probe=4, energy=[30, 800], data_rate='brst', datatype=['extof', 'phxtof'] spd_data_exists('mms4_epd_eis_brst_l2_combined_30-724keV_proton_flux_omni_pad mms4_epd_eis_brst_l2_combined_30-724keV_proton_flux_omni_pad_spin', '2015-12-15', '2015-12-16')
To reproduce: start_date = '2015-12-16' timespan, start_date, 1, /day mms_load_eis, probe=1, level='L2', /spdf
File is downloaded from SPDF correctly and variables are loaded. But the three requested variables are not there: mms1_epd_eis_srvy_l2_extof_proton_flux_omni_spin mms1_epd_eis_srvy_l2_extof_helium_flux_omni_spin mms1_epd_eis_srvy_l2_extof_oxygen_flux_omni_spin
There are no loaded variables that contain "omni".
To reproduce: start_date = '2015-12-16' timespan, start_date, 1, /day mms_load_eis, data_rate='brst', probes=[1, 2, 3, 4] mms_eis_pad, data_rate='brst', probes=[1, 2, 3, 4], /mmsx_vars spd_data_exists('mmsx_epd_eis_brst_l2_extof_proton_flux_omni_pads mmsx_epd_eis_brst_l2_extof_55-823keV_proton_flux_omni_pad', start_date, start_date) get_data, 'mmsx_epd_eis_brst_l2_extof_proton_flux_omni_pads', data=d, dl=dl, l=l get_data, 'mmsx_epd_eis_brst_l2_extof_55-823keV_proton_flux_omni_pad', data=d0, dl=dl0, l=l0
Variable 'mmsx_epd_eis_brst_l2_extof_proton_flux_omni_pads' exists but it is empty. Variable 'mmsx_epd_eis_brst_l2_extof_55-823keV_proton_flux_omni_pad' exists but it is empty.
get_data, 'mmsx_epd_eis_brst_l2_extof_proton_flux_omni_thisisasuffix_pads', data=d, dl=dl, l=l
To reproduce: start_date = '2015-12-16' timespan, start_date, 1, /day mms_load_eis, datatype='phxtof', level='l2', probe=1, data_rate='brst' get_data, 'mms1_epd_eis_brst_l2_phxtof_proton_flux_omni_spin', limits=l, data=d, dl=dl
Empty variable: 'mms1_epd_eis_brst_l2_phxtof_proton_flux_omni_spin'
9 of the EIS tests are currently failing: