This PR addresses issues #9 for updating the .par files automatically with data from monthly updated glimmondb.sqlite3 databse through the mta controlled op_limits.db. Proposed cronjob timings for this new script conform to existing update timings of op_limits database in the cronjob: (35 0 1 cd /data/mta/Script/MSID_limit; /data/mta/Script/MSID_limit/Scripts/compare_database_wrap_script)
Testing:
Test operates at functional level. Follow procedure to view test outcomes.
Fetch the auto_updating_par branch
Navigate to the test script located in config_mon/test
Run python test script with skare settings by running the following command: /proj/sot/ska3/flight/bin/skare test_parameter_update.py
Navigate to the config_mon/test/outTest directory to view the acis_temp.par test output.
If desired, comment out the...
if hasattr(mod,'PAR_FILE_LIST'):
mod.PAR_FILE_LIST = [f"{PARENT_DIR}/acis_temp.par"]
code block in the test_parameter_update.py file if you desire to test the full script output across all files. You may also revise...
if hasattr(mod,'OVERWRITE_WITH_OP_LIMITS'):
mod.OVERWRITE_WITH_OP_LIMITS = True
if hasattr(mod,'OVERWRITE_WITH_ACIS'):
mod.OVERWRITE_WITH_ACIS = True
code block to tailor which sources you would like to use to update the .par files.
Cron Job:
mta@c3po-v
35 1 1 cd /data/mta/Script/Dumps/Dumps_mon; /data/mta/Script/Dumps/Dumps_mon/update_par_wrap_script
Description:
This PR addresses issues #9 for updating the .par files automatically with data from monthly updated glimmondb.sqlite3 databse through the mta controlled op_limits.db. Proposed cronjob timings for this new script conform to existing update timings of op_limits database in the cronjob: (35 0 1 cd /data/mta/Script/MSID_limit; /data/mta/Script/MSID_limit/Scripts/compare_database_wrap_script)
Testing:
Test operates at functional level. Follow procedure to view test outcomes.
config_mon/test
/proj/sot/ska3/flight/bin/skare test_parameter_update.py
config_mon/test/outTest
directory to view theacis_temp.par
test output.code block in the
test_parameter_update.py
file if you desire to test the full script output across all files. You may also revise...code block to tailor which sources you would like to use to update the .par files.
Cron Job:
mta@c3po-v 35 1 1 cd /data/mta/Script/Dumps/Dumps_mon; /data/mta/Script/Dumps/Dumps_mon/update_par_wrap_script