ibell / pdsim

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

PDSim GUI failed to use the vapor injection function #85

Open Wang-Zongwei opened 1 year ago

Wang-Zongwei commented 1 year 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 1 year ago

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

Wang-Zongwei commented 1 year ago

OK, I will try, thanks.