Add top level parameter file module #37
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces the top level parameter file handler for constructing, loading and exporting the parameter file module.
EWM item: 8967
AI summary
This pull request introduces a new Jupyter notebook example for the
sammy.parameter
module, refactors several classes and methods, and updates imports in thepleiades.sammy.parameters
package. The most important changes include the addition of a new notebook example, refactoring of theRadiusCard
andResonanceCard
classes, and updates to theBroadeningParameterCard
class.New example notebook:
notebook/sammy.param/example.ipynb
: Added a new Jupyter notebook demonstrating how to use thesammy.parameter
module to load, construct, and manipulate parameter files for the SAMMY suite.Class and method refactoring:
src/pleiades/sammy/parameters/radius.py
: Added a newis_header_line
method to theRadiusCard
class, updated thefrom_lines
method to handle integer conversion forVaryFlag
, and changed the default format in theto_lines
method toKEYWORD
. [1] [2] [3]src/pleiades/sammy/parameters/resonance.py
: Introduced theResonanceCard
class to encapsulate resonance entries, including methods for parsing from lines and converting to lines. [1] [2]Updates to existing classes:
src/pleiades/sammy/parameters/broadening.py
: Refactored theto_lines
method in theBroadeningParameterCard
class to improve code readability and formatting of the output lines.Import updates:
src/pleiades/sammy/parameters/__init__.py
: Updated imports to includeExternalRFunction
andResonanceCard
for improved module encapsulation and functionality.