You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request
We want all_types_to_keymap to be as general as possible. We can add this functionality by allowing it to take a string and load the para file or yaml file
if isinstance(config,str):
if config.endswith('.yaml') or config.endswith('.yml'):
config=lp.read_yaml_config(config)
if config.endswith('.para'):
config=lp.read_config(config)
else:
raise ValueError(f"Config file format not recognized: '{config}'")
Before submitting
Please check the following:
I have described the purpose of the suggested change, specifying what I need the enhancement to accomplish, i.e. what problem it solves.
I have included any relevant links, screenshots, environment information, and data relevant to implementing the requested feature, as well as pseudocode for how I want to access the new functionality.
If I have ideas for how the new feature could be implemented, I have provided explanations and/or pseudocode and/or task lists for the steps.
The text was updated successfully, but these errors were encountered:
raphaelshirley
changed the title
Update lephare.all_types_to_keymap to take a string link to a yaml or para file
Homogenize config format requirements
Nov 13, 2024
Feature request
We want all_types_to_keymap to be as general as possible. We can add this functionality by allowing it to take a string and load the para file or yaml file
Before submitting
Please check the following:
The text was updated successfully, but these errors were encountered: