-
Notifications
You must be signed in to change notification settings - Fork 10
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
Feature decouple somd 3 #29
base: feature-decouple-somd-3
Are you sure you want to change the base?
Changes from 1 commit
8dc92c7
b654a04
fb7346c
ec4858f
abc0b9e
624576e
f0730aa
8d7b957
5c1c09f
3c760ef
7b97261
5be62d1
96a6b78
c3abd46
7b8e4c3
d96c928
f832e86
99be80c
a8c315c
08e0ef6
5612727
76f40d4
d7eacda
b1d2368
496aeff
8c0351e
484cc9d
68fa305
1f63593
a5348f0
49b4e68
d4f4253
aa924a6
89490f8
2b9bf88
19c5b98
b34738e
b231b56
1cdf9b3
6a0efab
2a59db6
68b1790
d25f6e5
50f3e1b
23243d0
7ac160e
439d203
d7614f3
769fd70
dbdbaee
b353206
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,6 +175,10 @@ def __init__( | |
self.lam_vals = lambda_values | ||
else: | ||
self.lam_vals = self._get_lam_vals() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please modify this to completely remove any reference to "somd.cfg" which should only be written by the engine config before it is used. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check why somd.cfg is appearing in the stage input directories - it shouldn't. |
||
|
||
if self.engine_config is not None: | ||
self.engine_config.lambda_values = self.lam_vals | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove all of this logic. Do not allow the user to pass a set of lambda values - this violates the single source of information principle because then the values are also in the config. Please just create a property which gets the lambda values from the engine config. |
||
self.equil_detection = equil_detection | ||
self.runtime_constant = runtime_constant | ||
self.relative_simulation_cost = relative_simulation_cost | ||
|
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.
Keep the single source of information principle, the values are also in the config files.
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.
Single source of information - always read the lambda values from the engine config, so make self.lam_vals a property which reads self.engine_config e.g.
@Property
def lam_vals(self):
return self.engine_config.lambda_values