Skip to content

Commit 249da9f

Browse files
improve water properties calculation exception messages
1 parent e51b5df commit 249da9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geophires_x/GeoPHIRESUtils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def density_water_kg_per_m3(Twater_degC: float, pressure: Optional[PlainQuantity
252252

253253
except (NotImplementedError, ValueError) as e:
254254
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
255-
f'are out of range or otherwise could not be used to calculate') from e
255+
f'are out of range or otherwise could not be used to calculate water density.') from e
256256

257257

258258
def celsius_to_kelvin(celsius: float) -> float:
@@ -298,7 +298,7 @@ def viscosity_water_Pa_sec(
298298

299299
except (NotImplementedError, ValueError) as e:
300300
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
301-
f'are out of range or otherwise could not be used to calculate') from e
301+
f'are out of range or otherwise could not be used to calculate water viscosity.') from e
302302

303303

304304
@lru_cache
@@ -334,7 +334,7 @@ def heat_capacity_water_J_per_kg_per_K(
334334

335335
except (NotImplementedError, ValueError) as e:
336336
raise ValueError(f'Input temperature & pressure ({Twater_degC}, {pressure}) '
337-
f'are out of range or otherwise could not be used to calculate') from e
337+
f'are out of range or otherwise could not be used to calculate heat capacity of water.') from e
338338

339339

340340
@lru_cache

0 commit comments

Comments
 (0)