-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add source field into ParameterConfig to indicate data source #10105
base: main
Are you sure you want to change the base?
Conversation
e4fe5fe
to
cc42aac
Compare
CodSpeed Performance ReportMerging #10105 will not alter performanceComparing Summary
|
src/ert/enkf_main.py
Outdated
@@ -198,8 +198,11 @@ def sample_prior( | |||
parameters = list(parameter_configs.keys()) | |||
for parameter in parameters: | |||
config_node = parameter_configs[parameter] | |||
if config_node.forward_init: | |||
if config_node.forward_init or ( | |||
type(config_node) == GenKwConfig and config_node.design |
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.
Think this logic would be simpler if we used something like source
instead, also for the future, something like:
ParameterSource(StrEnum):
forward_init = auto()
sampled = auto()
design_matrix = auto()
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.
Good! Will change correspondingly.
@@ -46,11 +47,17 @@ def parse_config( | |||
return args, kwargs | |||
|
|||
|
|||
class ParameterSource(StrEnum): | |||
forward_init = auto() |
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.
This should be changed to: user_provided
, and we need to keep forward_init
as is
On hold .... |
Design matrix genkw looks to be sampled, which is not an issue as it gets overwritten right after sampling with the DM values.
This should prevent DM to be sampled.
Can be discussed if it is necessary.
Approach
Short description of the approach
(Screenshot of new behavior in GUI if applicable)
git rebase -i main --exec 'just rapid-tests'
)When applicable