diff --git a/tests/test_flash_pure.py b/tests/test_flash_pure.py index d092111d..ead61070 100644 --- a/tests/test_flash_pure.py +++ b/tests/test_flash_pure.py @@ -869,7 +869,7 @@ def test_Psat_plot(fluid, eos): @pytest.mark.parametrize("fluid", pure_fluids) @pytest.mark.parametrize("eos", eos_list) @pytest.mark.parametrize("P_range", ['high', 'low']) -@pytest.mark.parametrize("solver", [GCEOS.volume_solutions]) +@pytest.mark.parametrize("solver", [staticmethod(GCEOS.volume_solutions)]) def test_V_error_plot(fluid, eos, P_range, solver): path = os.path.join(pure_surfaces_dir, fluid, "V_error") if not os.path.exists(path): @@ -957,8 +957,8 @@ def volume_solutions_mp(*args): assert max_err < 1e-13 - -#test_V_error_plot('ethane', SRK, 'low') +# test_V_error_plot('oxygen', PRSV, 'high', staticmethod(eos_volume.volume_solutions_halley)) +# test_V_error_plot('ethane', SRK, 'low') #test_V_error_plot('hydrogen', PR, 'low') #test_V_error_plot('decane', PR, 'low') # test_V_error_plot('ethane', SRK, 'high') diff --git a/thermo/eos.py b/thermo/eos.py index 305c2cfe..7f61f3e9 100644 --- a/thermo/eos.py +++ b/thermo/eos.py @@ -2072,7 +2072,8 @@ def volume_errors(self, Tmin=1e-4, Tmax=1e4, Pmin=1e-2, Pmax=1e9, kwargs['P'] = P try: obj = self.to(**kwargs) - except: + except Exception as e: + print('Failed to go to point, kwargs=%s with exception %s' %(kwargs, e)) # So bad we failed to calculate a real point val = 1.0 if timing: