You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
running python femmt/examples/inductor_optimization.py results in the following traceback:
To Reproduce
python femmt/examples/inductor_optimization.py
/home/nkirkby/repos/FEM_Magnetics_Toolbox/femmt/optimization/sto.py:505: ExperimentalWarning: NSGAIIISampler is experimental (supported from v3.2.0). The interface can change in the future.
sampler=optuna.samplers.NSGAIIISampler(),
/home/nkirkby/repos/FEM_Magnetics_Toolbox/femmt/optimization/io.py:331: ExperimentalWarning: NSGAIIISampler is experimental (supported from v3.2.0). The interface can change in the future.
sampler=optuna.samplers.NSGAIIISampler(),
Inductance:[1.55809288e-06 1.33873565e-06 1.17599351e-06 ... 9.27168903e-03
8.93333703e-03 8.62101694e-03]
Data is exported to in a pro-file.
AttributeError: 'float' object has no attribute 'log'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/nkirkby/repos/FEM_Magnetics_Toolbox/femmt/examples/inductor_optimization.py", line 1170, in <module>
ad = AutomatedDesign(working_directory=working_directory,
File "/home/nkirkby/repos/FEM_Magnetics_Toolbox/femmt/examples/inductor_optimization.py", line 584, in __init__
self.data_matrix_4 = self.filter_reluctance_losses(self.data_matrix_3)
File "/home/nkirkby/repos/FEM_Magnetics_Toolbox/femmt/examples/inductor_optimization.py", line 853, in filter_reluctance_losses
(1 / (2 * np.pi * data_matrix[:, self.param["core_h_middle"]])) * np.log((data_matrix[:, self.param["r_inner"]] * 2) / \
TypeError: loop of ufunc does not support argument 0 of type float which has no callable log method
Expected behavior
No exception
Desktop (please complete the following information):
Thanks Paderborn team for releasing femmt!
Describe the bug
running
python femmt/examples/inductor_optimization.py
results in the following traceback:To Reproduce
Expected behavior
No exception
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: