Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current Config Audit Results on Prerelease #387

Open
Cybis320 opened this issue Aug 25, 2024 · 2 comments
Open

Current Config Audit Results on Prerelease #387

Cybis320 opened this issue Aug 25, 2024 · 2 comments
Assignees
Labels

Comments

@Cybis320
Copy link
Contributor

FYI, there's quite the discrepancy between the current .config and ConfigReader implemented options. The current omit list (options silenced in the audit):

OMIT_FROM_CONFIG = {'lat',
                    'lon',
                    'location',
                    'altitude',
                    'event_monitor_db_name',
                    'force_v4l2',
                    'mask',
                    'platepar_name'
                    }

The current audit results:

================================================================================
                         DEV CONFIG COMPARISON RESULTS                          
================================================================================

    NOTE: .configTemplate file not found. Some comparisons will be skipped.     

               OPTIONS NOT IN CONFIG FILE BUT IMPLEMENTED IN RMS:               
--------------------------------------------------------------------------------
 - arch_dir_quota
 - brightness
 - bz2_files_quota
 - capt_dirs_to_keep
 - contrast
 - dark_file
 - mask_download_permissive
 - mask_remote_name
 - min_lines
 - platepar_template_dir
 - quota_management_disabled
 - remote_mask_dir
 - rms_data_quota
 - use_dark

                     OPTIONS COMMENTED OUT IN .CONFIG FILE                      
                          Default values will be used:                          
--------------------------------------------------------------------------------
 - public_elevation
 - public_latitude
 - public_longitude
 - star_catalog_band_ratios

================================================================================
                             INCOMPLETE COMPARISON                              
       Some files were not found, resulting in an incomplete comparison.        
================================================================================

Do we want to silence some of these options, or add them to config?
-Luc

@Cybis320
Copy link
Contributor Author

Cybis320 commented Aug 27, 2024

  1. Add to OMIT list as it seems deprecated?:

  • contrast
  • brightness
  1. Reopen Open awaiting merge PR Additions to config file #352?:

  • capt_dirs_to_keep
  • quota_management_disabled
  • rms_data_quota
  • arch_dir_quota
  • bz2_files_quota
  1. Accidentally deleted by commit #79b061 ? Add back in config? Added to omit list:

  • dark_file
  • use_dark
  1. Correct Configreader and add to config? min_lines is not used anywhere in RMS, remove altogether?:

  • min_lines

In addition of not being in config, there seems to be an error in ConfigReader on this one:

RMS/RMS/ConfigReader.py

Lines 1332 to 1333 in 1381e4b

if parser.has_option(section, "min_lines"):
config.max_lines = parser.getint(section, "max_lines")

Since min_lines does not exist max_lines option is ignored. max_line is correctly set elsewhere.

  1. PR Download mask from remote #239 introduced these without associated config options. Add them to config?:

  • mask_download_permissive
  • mask_remote_name
  • remote_mask_dir
  1. Commit 03ec6b6 introduced this one. Not sure if it should be added to config or omit:

  • platepar_template_dir

@g7gpr
Copy link
Contributor

g7gpr commented Aug 31, 2024

Q5, I suggest to add mask_download_permissive to .config, set to True, and remove the other two options and hard code them to prevent unintentional changes. No other comments from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants