Eomys/pyleecan

https://pyleecan.org/04_tuto_Operating_point.html

Opened this issue · 1 comments

Hello,

When I am running the above tutorial (https://pyleecan.org/04_tuto_Operating_point.html) and after I execute step ( cell 11) I am getting the below error


TypeError Traceback (most recent call last)
Cell In[22], line 41
38 varload.is_reuse_femm_file=True
40 # Add I0/Phi0 to the data available at the end of the simulation
---> 41 I0_dk = DataKeeper(
42 name="Stator current rms amplitude",
43 symbol="I0",
44 unit="Arms",
45 keeper="lambda output: output.elec.OP.get_I0_Phi0()['I0']",
46 )
47 Phi0_dk = DataKeeper(
48 name="Stator current phase",
49 symbol="Phi0",
50 unit="rad",
51 keeper="lambda output: output.elec.OP.get_I0_Phi0()['Phi0']",
52 )
53 varload.datakeeper_list= [I0_dk, Phi0_dk]

File c:\users\haris\downloads\pyleecan-1.4.2.tar\pyleecan-1.4.2\pyleecan-1.4.2\pyleecan\Classes\DataKeeper.py:106, in DataKeeper.init(self, name, symbol, unit, keeper, error_keeper, result, result_ref, physic, init_dict, init_str)
104 self.symbol = symbol
105 self.unit = unit
--> 106 self.keeper = keeper
107 self.error_keeper = error_keeper
108 self.result = result

File c:\users\haris\downloads\pyleecan-1.4.2.tar\pyleecan-1.4.2\pyleecan-1.4.2\pyleecan\Classes_frozen.py:35, in FrozenClass.setattr(self, key, value)
31 if self.__isfrozen and not hasattr(self, key):
32 raise FrozenError(
33 self.class.name + ' class has no "' + key + '" ' "property"
34 )
---> 35 object.setattr(self, key, value)

TypeError: 'property' object is not callable

resolve the issue