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

Configuration management mechanism and initial settings variables #95

Merged
merged 10 commits into from
Aug 22, 2023

Conversation

mpatrou
Copy link
Collaborator

@mpatrou mpatrou commented Aug 21, 2023

The code includes the addition of a configuration management mechanism.

Configuration settings are read from: CONFIG_PATH_FILE ,which defaults to: ~./shiver/configuration.ini .
If the file does not exist and/or variables are missing from the local configuration file, settings are retrieved from the configuration_template.ini file on the application startup.

Current settings added:
[generate_tab.oncat]

  • oncat_ur; url to oncat portal
  • client_id; client ID for oncat, which is unique for Shiver
  • use_notes; boolean flag value to indicate the location of the names of the datasets (notes/comments vs. sequence name)

[main_tab.plot]

  • title; plot title with options: full prints dimension data, name_only the workspace title, None: no title is printed in plots
  • logarithmic_intensity; the flag indicates the plot scale (logarithmic or not)

[global.other]

  • help_url; the url for the help buttons

The code has updated and additional tests for the mechanism and the settings variables added.

Copy link
Member

@rosswhitfield rosswhitfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appears to be working

@mpatrou mpatrou merged commit eccdce4 into next Aug 22, 2023
@mpatrou mpatrou deleted the config_managment branch August 22, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants