From 1ddf7296b424efe16d8338a74a84134b3ca86e76 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 24 Aug 2023 20:57:19 -0400 Subject: [PATCH] Another stupid bytes bug --- GUI/panels/pdsim_panels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/panels/pdsim_panels.py b/GUI/panels/pdsim_panels.py index 9f1d9e8..439bdf5 100644 --- a/GUI/panels/pdsim_panels.py +++ b/GUI/panels/pdsim_panels.py @@ -2373,7 +2373,7 @@ def OnAddFluid(self, event = None): # Check that you can get the molar mass of this fluid Fluid = dlg.GetValue().encode('ascii') dlg.Destroy() - if 'BICUBIC' in Fluid or 'TTSE' in Fluid: + if b'BICUBIC' in Fluid or b'TTSE' in Fluid: dlg3 = wx.MessageDialog(None,"Warning: If tables have not been created already for this fluid, it will take a while to build the tables") dlg3.ShowModal() dlg3.Destroy()