Skip to content

Commit

Permalink
rename femmt_print()
Browse files Browse the repository at this point in the history
  • Loading branch information
gituser789 committed Aug 8, 2023
1 parent c611f8b commit 8df9be8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions femmt/examples/ito_optuna_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
)


#task = 'start_study'
task = 'start_study'
#task = 'filter_reluctance_model'
task = 'fem_simulation_from_filtered_reluctance_model_results'
# task = 'fem_simulation_from_filtered_reluctance_model_results'
#task = 'plot_study_results'

study_name = "workflow_2023-04-15"
Expand Down
2 changes: 1 addition & 1 deletion femmt/examples/sto_optuna_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
if __name__ == '__main__':
time_start = datetime.datetime.now()

fmt.StackedTransformerOptimization.FemSimulation.start_proceed_study(study_name, dab_transformer_config, 2,
fmt.StackedTransformerOptimization.FemSimulation.start_proceed_study(study_name, dab_transformer_config, 15,
number_objectives=4,
sampler=optuna.samplers.NSGAIIISampler())
#fmt.StackedTransformerOptimization.FemSimulation.show_study_results(study_name, dab_transformer_config)
4 changes: 2 additions & 2 deletions femmt/optimization/ito.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def load_unfiltered_results(working_directory: str) -> List[ItoSingleResultFile]
:rtype: List[ItoSingleResultFile]
"""
integrated_transformer_reluctance_model_results_directory = os.path.join(working_directory, "01_reluctance_model_results")
ff.femmt_print(f"Read results from {integrated_transformer_reluctance_model_results_directory}")
print(f"Read results from {integrated_transformer_reluctance_model_results_directory}")
return femmt.IntegratedTransformerOptimization.ReluctanceModel.load_list(integrated_transformer_reluctance_model_results_directory)

@staticmethod
Expand All @@ -1200,7 +1200,7 @@ def load_filtered_results(working_directory: str) -> List[ItoSingleResultFile]:
:rtype: List[ItoSingleResultFile]
"""
integrated_transformer_reluctance_model_results_directory = os.path.join(working_directory, "01_reluctance_model_results_filtered")
ff.femmt_print(f"Read results from {integrated_transformer_reluctance_model_results_directory}")
print(f"Read results from {integrated_transformer_reluctance_model_results_directory}")
return femmt.IntegratedTransformerOptimization.ReluctanceModel.load_list(integrated_transformer_reluctance_model_results_directory)

class FemSimulation:
Expand Down
4 changes: 2 additions & 2 deletions femmt/optimization/sto.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def objective(trial, config: StoSingleInputConfig,

geo = femmt.MagneticComponent(component_type=femmt.ComponentType.IntegratedTransformer,
working_directory=target_and_fixed_parameters.working_directories.fem_working_directory,
silent=True, simulation_name=f"Case_{trial.number}")
verbosity=femmt.Verbosity.Silent, simulation_name=f"Case_{trial.number}")

core_dimensions = femmt.dtos.StackedCoreDimensions(core_inner_diameter=core_inner_diameter, window_w=window_w,
window_h_top=window_h_top, window_h_bot=window_h_bot)
Expand Down Expand Up @@ -475,7 +475,7 @@ def re_simulate_single_result(study_name: str, config: StoSingleInputConfig, num

geo = femmt.MagneticComponent(component_type=femmt.ComponentType.IntegratedTransformer,
working_directory=target_and_fixed_parameters.working_directories.fem_working_directory,
silent=True, simulation_name=f"Single_Case_{trial._trial_id}")
verbosity=fmt.Verbosity.Silent, simulation_name=f"Single_Case_{trial._trial_id}")

core_dimensions = femmt.dtos.StackedCoreDimensions(core_inner_diameter=core_inner_diameter, window_w=window_w,
window_h_top=window_h_top, window_h_bot=window_h_bot)
Expand Down

0 comments on commit 8df9be8

Please sign in to comment.