chandra-mta / config_mon

This is the MTA dumps monitoring scripts.
1 stars 0 forks source link

Auto updating par #10

Closed william-aaron-CFA closed 9 months ago

william-aaron-CFA commented 11 months ago

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.

  1. Fetch the auto_updating_par branch
  2. Navigate to the test script located in config_mon/test
  3. Run python test script with skare settings by running the following command: /proj/sot/ska3/flight/bin/skare test_parameter_update.py
  4. Navigate to the config_mon/test/outTest directory to view the acis_temp.par test output.
  5. 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