-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into space_example
- Loading branch information
Showing
26 changed files
with
314 additions
and
320 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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,53 @@ | ||
from .branin_hoo import create_branin | ||
from .color_pH import create_color_ph | ||
from .gold_map import create_gold_map | ||
from .gold_map_with_wells import create_gold_map_with_wells | ||
from .hart3 import create_hart3 | ||
from .hart6 import create_hart6 | ||
from .model_system import ModelSystem | ||
from .peaks import create_peaks | ||
from .poly2 import create_poly2 | ||
|
||
|
||
def get_model_system(model_system: str) -> ModelSystem: | ||
""" | ||
Get the model system object for the given model system name. | ||
Parameters | ||
---------- | ||
* `model_system` [str]: | ||
The name of the model system to get. | ||
Returns | ||
------- | ||
* `model_system` [ModelSystem]: | ||
The model system object. | ||
""" | ||
creator_dict = { | ||
"branin_hoo": (create_branin,), | ||
"branin_no_noise": (create_branin, False), | ||
"color_ph": (create_color_ph,), | ||
"color_pH": (create_color_ph,), | ||
"colour_ph": (create_color_ph,), | ||
"colour_pH": (create_color_ph,), | ||
"gold_map": (create_gold_map,), | ||
"gold_map_with_wells": (create_gold_map_with_wells,), | ||
"hart3": (create_hart3,), | ||
"hart3_no_noise": (create_hart3, False), | ||
"hart6": (create_hart6,), | ||
"hart6_no_noise": (create_hart6, False), | ||
"poly2": (create_poly2,), | ||
"poly2_no_noise": (create_poly2, False), | ||
"peaks": (create_peaks,), | ||
"peaks_no_noise": (create_peaks, False), | ||
} | ||
if model_system not in creator_dict: | ||
raise ValueError( | ||
f"Model system {model_system} not found. " | ||
f"Choose from {list(creator_dict.keys())}." | ||
) | ||
model_system_tuple = creator_dict[model_system] | ||
if len(model_system_tuple) == 1: | ||
return model_system_tuple[0]() | ||
else: | ||
return model_system_tuple[0](noise=model_system_tuple[1]) |
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
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
36 changes: 0 additions & 36 deletions
36
ProcessOptimizer/model_systems/second_order_polynomial_2d.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.