-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
MF regression IB tests #31651
Merged
Merged
MF regression IB tests #31651
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
Configuration/StandardSequences/python/MagneticField_38T_PostLS1_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### THIS CFF IS DEPRECATED!!!! ### | ||
# please use MagneticField_cff.py instead | ||
|
||
from __future__ import print_function | ||
print(" ##################################################################### ") | ||
print(" # WARNING: the module # ") | ||
print(" # Configuration.StandardSequences.MagneticField_38T_PostLS1_cff # ") | ||
print(" # is deprecated. Please import # ") | ||
print(" # Configuration.StandardSequences.MagneticField_cff # ") | ||
print(" ##################################################################### ") | ||
|
||
from Configuration.StandardSequences.MagneticField_38T_cff import * | ||
|
6 changes: 6 additions & 0 deletions
6
Configuration/StandardSequences/python/MagneticField_AutoFromDBCurrent_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This cff is obsolete and will eventually be deprecated. | ||
# Please replace it with | ||
# Configuration.StandardSequences.MagneticField_cff.py | ||
# in your setup. | ||
|
||
from Configuration.StandardSequences.MagneticField_cff import * |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the comment fields you suggest to replace this with
MagneticField_cff,
while in the command line you substitute it withMagneticField_38T_cff:
please fix the one which is wrong.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It really depends what users intended to get when they picked this cff.
The name suggests a fixed 3.8T map regardless of conditions, so MagneticField_38T_cff would be the verbatim replacement. This is why it is substituted with MagneticField_38T_cff in the command.
But most likely it has been picked because it looked like the right one at the time: I expect that in 99% of the cases the standard MagneticField_cff would be the right choice instead. Which is why users are recommended to use the latter instead. Usage of non-conditions-dependent configs should in fact be discouraged for general usage.
BTW (although it's probably clear) I am just reverting here these files as they were before,
Eventually going through all instances and fixing them one by one with the correct cff will be the right choice, see comment below.