Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crowdnidhi-design opened this issue Feb 17, 2024 · 1 comment
Open

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

crowdnidhi-design opened this issue Feb 17, 2024 · 1 comment

Comments

@crowdnidhi-design
Copy link

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

@crowdnidhi-design
Copy link
Author

resolve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant