Skip to content

Commit

Permalink
+solo/*/*.m: Change to std. indentation (length=2 etc.)
Browse files Browse the repository at this point in the history
Include +solo/*/*.m in irf/irf_indentations.m and modify corresponding
files (many!) using it to set standard indentation.

Note: Excluding +solo/*.m for now.
  • Loading branch information
ErikPGJ committed Jan 18, 2024
1 parent e5a476d commit 06f1427
Show file tree
Hide file tree
Showing 64 changed files with 6,047 additions and 6,041 deletions.
6 changes: 6 additions & 0 deletions irf/irf_indentations.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
['mission' filesep 'mms' filesep 'cal'], ...
['mission' filesep 'mms' filesep 'mms_testFunctions'], ...
['mission' filesep 'rosetta'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+BSACT_utils'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+adm'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+hwzv'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+qli'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+shk'], ...
['mission' filesep 'solar_orbiter' filesep '+solo' filesep '+sp'], ...
['mission' filesep 'themis'], ...
['mission' filesep 'thor'], ...
['mission' filesep 'thor' filesep 'orbit_coverage'], ...
Expand Down
98 changes: 49 additions & 49 deletions mission/solar_orbiter/+solo/+BSACT_utils/load_BSACT_2016_06.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,62 +9,62 @@
% First created 2017-12-12
%
function [TcDcc, TcDcv, TcTf, TcIc] = load_BSACT_2016_06(bsactRootPath)
%
% TODO-NI: What does TC (in variable names) stand for?
%
%
% TODO-NI: What does TC (in variable names) stand for?
%

% NOTE 2017-12-12: The MEB temperature used for this calibration test is not
% yet known
% NOTE 2020-03-05: Table files seem to contain measured temperature:
% Ex: "mheader.reg2 24.11 :Ambient temperature in C"
% NOTE 2017-12-12: The MEB temperature used for this calibration test is not
% yet known
% NOTE 2020-03-05: Table files seem to contain measured temperature:
% Ex: "mheader.reg2 24.11 :Ambient temperature in C"

%MEB_TEMPERATURE_CELSIUS = 22; % Guessing ~room temperature. /Erik P G Johansson 2017-12-12.
MEB_TEMPERATURE_CELSIUS = NaN;
%MEB_TEMPERATURE_CELSIUS = 22; % Guessing ~room temperature. /Erik P G Johansson 2017-12-12.
MEB_TEMPERATURE_CELSIUS = NaN;



%=================================
% Register DCC calibration tables
%=================================
% NOTE: There are two (long) log books but this should be the right one
% judging from comparing time stamp in log book with time stamps in table
% files. Nonetheless, the log books are identical in those parts which are
% actually read so which one is read should not really matter.
TcDcc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcDcc.add_test_directory(...
'DCC', ...
fullfile(bsactRootPath, '4-3_BIAS_DC_CURRENT', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-3_BIAS_DC_CURRENT', 'Log', 'testlogbook_2016-06-22 _15-04-36__FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);
%=================================
% Register DCC calibration tables
%=================================
% NOTE: There are two (long) log books but this should be the right one
% judging from comparing time stamp in log book with time stamps in table
% files. Nonetheless, the log books are identical in those parts which are
% actually read so which one is read should not really matter.
TcDcc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcDcc.add_test_directory(...
'DCC', ...
fullfile(bsactRootPath, '4-3_BIAS_DC_CURRENT', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-3_BIAS_DC_CURRENT', 'Log', 'testlogbook_2016-06-22 _15-04-36__FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);

%=================================
% Register DCV calibration tables
%=================================
TcDcv = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcDcv.add_test_directory(...
'DCV', ...
fullfile(bsactRootPath, '4-4_BIAS_DC_VOLTAGE', 'SO_BIAS_DC_VOLTAGE_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-4_BIAS_DC_VOLTAGE', 'Log', 'testlogbook_2016-06-21 _16-06-21__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);
%=================================
% Register DCV calibration tables
%=================================
TcDcv = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcDcv.add_test_directory(...
'DCV', ...
fullfile(bsactRootPath, '4-4_BIAS_DC_VOLTAGE', 'SO_BIAS_DC_VOLTAGE_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-4_BIAS_DC_VOLTAGE', 'Log', 'testlogbook_2016-06-21 _16-06-21__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);

%================================
% Register TF calibration tables
%================================
TcTf = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcTf.add_test_directory(...
'TF', ...
fullfile(bsactRootPath, '4-5_TRANSFER_FUNCTION', 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-5_TRANSFER_FUNCTION', 'Log', 'testlogbook_2016-06-22 _09-19-38__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);
%================================
% Register TF calibration tables
%================================
TcTf = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcTf.add_test_directory(...
'TF', ...
fullfile(bsactRootPath, '4-5_TRANSFER_FUNCTION', 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-5_TRANSFER_FUNCTION', 'Log', 'testlogbook_2016-06-22 _09-19-38__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);

%================================
% Register IC calibration tables
%================================
TcIc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcIc.add_test_directory(...
'IC', ...
fullfile(bsactRootPath, '4-8_BIAS_DC_INTERNAL_CAL', 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-8_BIAS_DC_INTERNAL_CAL', 'Log', 'testlogbook_2016-06-22 _10-42-30__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);
%================================
% Register IC calibration tables
%================================
TcIc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
TcIc.add_test_directory(...
'IC', ...
fullfile(bsactRootPath, '4-8_BIAS_DC_INTERNAL_CAL', 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FS0_PAFM.txt'), ...
fullfile(bsactRootPath, '4-8_BIAS_DC_INTERNAL_CAL', 'Log', 'testlogbook_2016-06-22 _10-42-30__VER_FS.txt'), ...
MEB_TEMPERATURE_CELSIUS);

end
154 changes: 77 additions & 77 deletions mission/solar_orbiter/+solo/+BSACT_utils/load_BSACT_2016_07.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,94 +7,94 @@
%
function [TcDcc, TcDcv, TcTf, TcIc] = load_BSACT_2016_07(bsactRootPath)

%=================================
% Register DCC calibration tables
%=================================
TcDcc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_DCC_dir(-25, '4_3_DC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_-25_4.3.txt', 'testlogbook_2016-07-23 _19-41-06__FS.txt');
add_DCC_dir(0, '4_3_DC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_0_4.3.txt', 'testlogbook_2016-07-24 _20-08-56__FM1_0_4_3.txt');
add_DCC_dir(25, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _13-11-53__FM1.txt');
add_DCC_dir(50, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _18-08-22__FM1_+50C.txt');
add_DCC_dir(70, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _13-38-12__FM1.txt');
%=================================
% Register DCC calibration tables
%=================================
TcDcc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_DCC_dir(-25, '4_3_DC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_-25_4.3.txt', 'testlogbook_2016-07-23 _19-41-06__FS.txt');
add_DCC_dir(0, '4_3_DC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_0_4.3.txt', 'testlogbook_2016-07-24 _20-08-56__FM1_0_4_3.txt');
add_DCC_dir(25, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _13-11-53__FM1.txt');
add_DCC_dir(50, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _18-08-22__FM1_+50C.txt');
add_DCC_dir(70, '4_3_AC_CURRENT_TEST', 'SO_BIAS_DC_CURRENT_ID%03i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _13-38-12__FM1.txt');

%=================================
% Register DCV calibration tables
%=================================
TcDcv = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_DCV_dir(-25, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_-25_4.4.txt', 'testlogbook_2016-07-23 _20-01-05__VER_FS.txt');
add_DCV_dir(0, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_0_4.4.txt', 'testlogbook_2016-07-24 _20-28-36__VER_FM1_0_4.4.txt');
add_DCV_dir(25, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _12-00-09__VER_FM1.txt');
add_DCV_dir(50, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _16-26-18__VER_FM1_+50C.txt');
add_DCV_dir(70, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _12-26-06__VER_FM1.txt');
%=================================
% Register DCV calibration tables
%=================================
TcDcv = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_DCV_dir(-25, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_-25_4.4.txt', 'testlogbook_2016-07-23 _20-01-05__VER_FS.txt');
add_DCV_dir(0, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_0_4.4.txt', 'testlogbook_2016-07-24 _20-28-36__VER_FM1_0_4.4.txt');
add_DCV_dir(25, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _12-00-09__VER_FM1.txt');
add_DCV_dir(50, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _16-26-18__VER_FM1_+50C.txt');
add_DCV_dir(70, 'SO_BIAS_DC_VOLTAGE_ID%i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _12-26-06__VER_FM1.txt');

%================================
% Register TF calibration tables
%================================
TcTf = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_TF_dir(-25, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_-25_4.5.txt', 'testlogbook_2016-07-23 _21-13-50__VER_FS.txt');
add_TF_dir( 0, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_0_4.5.txt', 'testlogbook_2016-07-24 _18-52-41__VER_4_5_FM1_0C.txt');
add_TF_dir( 25, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _10-46-54__VER_FM1.txt');
add_TF_dir( 50, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _15-14-42__VER_Fm1.txt');
add_TF_dir( 70, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _11-13-26__VER_FM1.txt');
%================================
% Register TF calibration tables
%================================
TcTf = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_TF_dir(-25, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_-25_4.5.txt', 'testlogbook_2016-07-23 _21-13-50__VER_FS.txt');
add_TF_dir( 0, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_0_4.5.txt', 'testlogbook_2016-07-24 _18-52-41__VER_4_5_FM1_0C.txt');
add_TF_dir( 25, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _10-46-54__VER_FM1.txt');
add_TF_dir( 50, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _15-14-42__VER_Fm1.txt');
add_TF_dir( 70, 'SO_BIAS_AC_VOLTAGE_ID%02i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _11-13-26__VER_FM1.txt');

%================================
% Register IC calibration tables
%================================
TcIc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_IC_dir(-25, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_-25_4.8.txt', 'testlogbook_2016-07-23 _23-01-49__VER_FS.txt');
add_IC_dir( 25, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _17-10-23__VER_FM1.txt');
add_IC_dir( 50, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _17-41-02__VER_FM1_+50C.txt');
add_IC_dir( 70, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _13-56-06__VER_FM1.txt');
%================================
% Register IC calibration tables
%================================
TcIc = solo.BSACT_utils.reader_DCC_DCV_TF_IC();
add_IC_dir(-25, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_-25_4.8.txt', 'testlogbook_2016-07-23 _23-01-49__VER_FS.txt');
add_IC_dir( 25, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_+25C.txt', 'testlogbook_2016-07-23 _17-10-23__VER_FM1.txt');
add_IC_dir( 50, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1_+50c.txt', 'testlogbook_2016-07-24 _17-41-02__VER_FM1_+50C.txt');
add_IC_dir( 70, 'SO_BIAS_INT_CAL_ID%03i_Ver_00_FM1.txt', 'testlogbook_2016-07-24 _13-56-06__VER_FM1.txt');



% Function to compress the code. (Use bsactRootPath, TcDcc as "global variables".)
% Needs argument "testDirName" since it can be both 4_3_DC_CURRENT_TEST and 4_3_AC_CURRENT_TEST (a misspelling:
% DC-->AC).
function add_DCC_dir(mebTempCelsius, testDirName, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcDcc.add_test_directory(...
'DCC', ...
fullfile(bsactRootPath, subdir, testDirName, cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, testDirName, testlogbookFilename), ...
mebTempCelsius ...
);
end
% Function to compress the code. (Use bsactRootPath, TcDcc as "global variables".)
% Needs argument "testDirName" since it can be both 4_3_DC_CURRENT_TEST and 4_3_AC_CURRENT_TEST (a misspelling:
% DC-->AC).
function add_DCC_dir(mebTempCelsius, testDirName, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcDcc.add_test_directory(...
'DCC', ...
fullfile(bsactRootPath, subdir, testDirName, cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, testDirName, testlogbookFilename), ...
mebTempCelsius ...
);
end



% Function to compress the code. (Use bsactRootPath, TcDcv as "global variables".)
function add_DCV_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcDcv.add_test_directory(...
'DCV', ...
fullfile(bsactRootPath, subdir, '4_4_DC_VOLTAGE_TEST', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_4_DC_VOLTAGE_TEST', testlogbookFilename), ...
mebTempCelsius ...
);
end
% Function to compress the code. (Use bsactRootPath, TcDcv as "global variables".)
function add_DCV_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcDcv.add_test_directory(...
'DCV', ...
fullfile(bsactRootPath, subdir, '4_4_DC_VOLTAGE_TEST', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_4_DC_VOLTAGE_TEST', testlogbookFilename), ...
mebTempCelsius ...
);
end



% Function to compress the code. (Use bsactRootPath, TcTf as "global variables".)
function add_TF_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcTf.add_test_directory(...
'TF', ...
fullfile(bsactRootPath, subdir, '4_5_TRANSFER_FUNCTION', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_5_TRANSFER_FUNCTION', testlogbookFilename), ...
mebTempCelsius ...
);
end
% Function to compress the code. (Use bsactRootPath, TcTf as "global variables".)
function add_TF_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcTf.add_test_directory(...
'TF', ...
fullfile(bsactRootPath, subdir, '4_5_TRANSFER_FUNCTION', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_5_TRANSFER_FUNCTION', testlogbookFilename), ...
mebTempCelsius ...
);
end

% Function to compress the code. (Use bsactRootPath, TcTf as "global variables".)
function add_IC_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcIc.add_test_directory(...
'IC', ...
fullfile(bsactRootPath, subdir, '4_8_INTERNAL_CALIBRATION', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_8_INTERNAL_CALIBRATION', testlogbookFilename), ...
mebTempCelsius ...
);
end
% Function to compress the code. (Use bsactRootPath, TcTf as "global variables".)
function add_IC_dir(mebTempCelsius, cTableFilesPattern, testlogbookFilename)
subdir = sprintf('TEMP%dC', mebTempCelsius);
TcIc.add_test_directory(...
'IC', ...
fullfile(bsactRootPath, subdir, '4_8_INTERNAL_CALIBRATION', cTableFilesPattern), ...
fullfile(bsactRootPath, subdir, '4_8_INTERNAL_CALIBRATION', testlogbookFilename), ...
mebTempCelsius ...
);
end
end
Loading

0 comments on commit 06f1427

Please sign in to comment.