ibell / pdsim

Steady-State simulation code for positive displacement machines
MIT License
38 stars 23 forks source link

PDSim GUI failed to use the vapor injection function #85

Open Wang-Zongwei opened 10 months ago

Wang-Zongwei commented 10 months ago

Today I found below issue, and I hope my feedback is useful.

When I tried to use "vapor injection for scroll compressor", there's no any response when when I clicked the button "Add Injection Line". (see below pic)

QQ截图20231013155456

Below information showed in main output log: Traceback (most recent call last): File "C:\pdsim-master\GUI\plugins\scroll_plugins.py", line 422, in OnAddInjection IE = InjectionElementPanel(self.scrolled_panel,self.Nterms+1) File "C:\pdsim-master\GUI\plugins\scroll_plugins.py", line 265, in init IPP = InjectionPortPanel(self, index = 1) File "C:\pdsim-master\GUI\plugins\scroll_plugins.py", line 40, in init self.AddPort.Bind(wx.EVT_BUTTON,self.Parent.OnAddPort(self)) File "C:\pdsim-master\GUI\plugins\scroll_plugins.py", line 340, in OnAddPort IPP = InjectionPortPanel(self, index = len(self.ports_list)+1) AttributeError: 'InjectionElementPanel' object has no attribute 'ports_list'

ibell commented 10 months ago

Hmm I haven't worked with that code in years. Can you debug yourself?

Wang-Zongwei commented 10 months ago

OK, I will try, thanks.