-
Notifications
You must be signed in to change notification settings - Fork 33
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
ENH Deprecate settings interface #339
Labels
API - Compatible
Changes to our API that require no user actions
Deprecations
Features slated for deprecation and removal
pythonicness
Milestone
Comments
drewejohnson
added
pythonicness
API - Incompatible
Incompatible changes to our API that require user actions
proposal
labels
Sep 25, 2019
13 tasks
When the settings interface is removed and/or deprecated, the command line interface subcommand serpent-tools/serpentTools/__main__.py Lines 159 to 171 in d6b65c8
|
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this issue
Aug 31, 2020
Interface outside of the rc object for expanding variable groups. Abstracted away because the setting interface will eventually be removed (GH CORE-GATECH-GROUP#339) as each reader (built from CORE-GATECH-GROUP#335 and CORE-GATECH-GROUP#400) will control their own settings.
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this issue
Aug 31, 2020
Interface outside of the rc object for expanding variable groups. Abstracted away because the setting interface will eventually be removed (GH CORE-GATECH-GROUP#339) as each reader (built from CORE-GATECH-GROUP#335 and CORE-GATECH-GROUP#400) will control their own settings.
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this issue
Aug 31, 2020
Interface outside of the rc object for expanding variable groups. Abstracted away because the setting interface will eventually be removed (GH CORE-GATECH-GROUP#339) as each reader (built from CORE-GATECH-GROUP#335 and CORE-GATECH-GROUP#400) will control their own settings.
6 tasks
Tentative plan from #516
|
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this issue
Jun 17, 2024
Names of detectors can be provided when building a `DetectorReader` Related to CORE-GATECH-GROUP#339
This was referenced Jun 17, 2024
For a deprecation, it's technically API compatible. But the full removal will be not compatible |
drewejohnson
added
API - Compatible
Changes to our API that require no user actions
and removed
API - Incompatible
Incompatible changes to our API that require user actions
labels
Jun 17, 2024
This was referenced Jun 17, 2024
drewejohnson
added a commit
to drewejohnson/serpent-tools
that referenced
this issue
Jun 18, 2024
Names of detectors can be provided when building a `DetectorReader` Related to CORE-GATECH-GROUP#339
DanKotlyar
pushed a commit
that referenced
this issue
Jun 19, 2024
* ENH: Support providing detector names at construction Names of detectors can be provided when building a `DetectorReader` Related to #339 * DOC Add changelog for detector reader names at init
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
API - Compatible
Changes to our API that require no user actions
Deprecations
Features slated for deprecation and removal
pythonicness
I've been mulling something over for the past few months, and I think we can and should completely remove the settings interface. Instead, all of the functionality can be passed to the readers at construction.
Most of readers just pull from the
rc
global to create attributes during the construction.Instead of
one would instead use
The benefits are
rc
as a context manager]The
rc
object and the capabilities allowed are a powerful feature ofserpentTools
IMHO. So naturally we will want to preserve this control, but try and reduce the pain of this switch.Impact
Anyone who uses the
rc
object will be impacted. I frequently use these settings to control what data is read from depletion and result files.Roll out
Version 0.9.0
rc.__setitem__
raiseFutureWarnings
indicating deprecation and swift removal__init__
methods for various readers that rely on these settings. If values are not explicitly provided, e.g. areNone
, pull the defaults fromrc
Version 0.9.1 or later
serpentTools.settings
interfacerc
The text was updated successfully, but these errors were encountered: