Skip to content

Commit fca2f8d

Browse files
authored
Merge pull request #170 from upb-lea/pandas_fixes
transformer optimization fixes
2 parents 3cfa7e9 + 80bfa9c commit fca2f8d

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.pylintrc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ recursive=no
104104
# source root.
105105
source-roots=
106106

107-
# When enabled, pylint would attempt to guess common misconfiguration and emit
108-
# user-friendly hints instead of false-positive error messages.
109-
suggestion-mode=yes
110-
111107
# Allow loading of arbitrary C extensions. Extensions are imported into the
112108
# active Python interpreter and may run arbitrary code.
113109
unsafe-load-any-extension=no

femmt/optimization/sto.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,15 +1161,17 @@ def fem_logs_to_df(reluctance_df: pd.DataFrame, fem_results_folder_path: str) ->
11611161
return reluctance_df_copy
11621162

11631163
@staticmethod
1164-
def full_simulation(df_geometry: pd.DataFrame, current_waveform: list, stacked_transformer_config_filepath: str, process_number: int = 1,
1165-
show_visual_outputs: bool = False, print_derivations: bool = False):
1164+
def full_simulation(df_geometry: pd.DataFrame, current_1_waveform: list, current_2_waveform: list, stacked_transformer_config_filepath: str,
1165+
process_number: int = 1, show_visual_outputs: bool = False, print_derivations: bool = False):
11661166
"""
11671167
Reluctance model (hysteresis losses) and FEM simulation (winding losses and eddy current losses) for geometries from df_geometry.
11681168
11691169
:param df_geometry: Pandas dataframe with geometries
11701170
:type df_geometry: pd.DataFrame
1171-
:param current_waveform: Current waveform to simulate
1172-
:type current_waveform: list
1171+
:param current_1_waveform: Time and current waveform for winding 1 to simulate. Structure: [[],[]]
1172+
:type current_1_waveform: list
1173+
:param current_2_waveform: Time and current waveform for winding 2 to simulate. Structure: [[],[]]
1174+
:type current_2_waveform: list
11731175
:param stacked_transformer_config_filepath: Filepath of the inductor optimization configuration file
11741176
:type stacked_transformer_config_filepath: str
11751177
:param process_number: process number to run the simulation on
@@ -1197,7 +1199,9 @@ def full_simulation(df_geometry: pd.DataFrame, current_waveform: list, stacked_t
11971199
window_w = df_geometry['params_window_w'][index_number]
11981200

11991201
# overwrite the old time-current vector with the new one
1200-
local_config.time_current_vec = current_waveform
1202+
local_config.time_current_1_vec = current_1_waveform
1203+
local_config.time_current_2_vec = current_2_waveform
1204+
12011205
target_and_fix_parameters = StackedTransformerOptimization.ReluctanceModel.calculate_fix_parameters(local_config)
12021206

12031207
# material properties

0 commit comments

Comments
 (0)