Open ericthewizard opened 1 year ago
Same two tests still failing:
(base) Jamess-MBP:~ jwl$ grep failed mms_feeps_results
test_bad_lower_channels_srvy_sitl: failed "Subscripts are not allowed with variable attributes." (floating-point operand error) (3.152932 seconds)
test_load_sitl_omni: failed "Problem loading omni-directional FEEPS spectra using SITL files" (floating-point operand error) (16.495555 seconds)
The problem can be reproduced with the command:
mms_load_feeps, probes=[1], level='sitl', trange=['2016-11-01', '2016-11-02']
Here are some log messages:
MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_count_rate_sensorid_5 MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_count_rate_sensorid_11 MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_count_rate_sensorid_12 % Compiled module: MMS_FEEPS_REMOVE_SUN. MMS_FEEPS_REMOVE_SUN(33): Error - couldn't find the spin sector variable!!!! Cannot remove sun contamination! % Compiled module: MMS_FEEPS_OMNI. % Compiled module: MMS_FEEPS_SPIN_AVG. MMS_FEEPS_SPIN_AVG(33): Error, couldn't find the tplot variable containing the spin sectors for calculating the spin averages. MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_intensity_sensorid_5 MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_intensity_sensorid_11 MMS_FEEPS_SPLIT_INTEGRAL_CH(38): Couldnt find the variable: mms1_epd_feeps_srvy_sitl_electron_top_intensity_sensorid_12 MMS_FEEPS_REMOVE_SUN(33): Error - couldn't find the spin sector variable!!!! Cannot remove sun contamination! MMS_FEEPS_SPIN_AVG(33): Error, couldn't find the tplot variable containing the spin sectors for calculating the spin averages.
What we've found so far is that the data available at the SDC is a mix of different CDF file versions on different dates, for example: mms1_feeps_srvy_sitl_electron_20161101000000_v7.1.1.cdf mms1_feeps_srvy_sitl_electron_20171101000000_v6.0.10.cdf mms1_feeps_srvy_sitl_electron_20181101000000_v6.0.7.cdf mms1_feeps_srvy_sitl_electron_20221101000000_v7.2.4.cdf
If we pick a date with version 6 CDF data available, mms_load_feeps seems to work fine. It fails for any date with version 7 CDFs. There are variables in the version 6 CDFs that aren't present in version 7, and that's why the test fails for those dates.
Two of the FEEPS tests are failing: