Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite Whittaker and isotherm prediction #54

Merged
merged 81 commits into from
Jan 7, 2025

Conversation

sblanky
Copy link
Collaborator

@sblanky sblanky commented Feb 20, 2024

As discussed - hope you get a chance to look at it!
Scott

pressure: float
pressure, in Pa
"""
return CP.CoolProp.PropsSI('Z', 'T', temp, 'P', pressure, self.backend_name)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this done using the RefProp backend?

@@ -1073,3 +1080,9 @@ def spreading_pressure_at(

# calculate based on model
return self.model.spreading_pressure(pressure)

def toth_correction_at(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not live here

R = constants.gas_constant


def isotherm_to_predicted(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This funtion feels like it could be made more generinc. It is currently using the whittaker enthalpy only. If someone has other types of enthalpies of sorption, like from calorimetry, they would be able to make use of this to predict using the clausius clapeyron. Suggestion to make the call to whittaker external to the function

@pauliacomi pauliacomi self-requested a review September 5, 2024 22:36
Copy link

codecov bot commented Jan 6, 2025

Codecov Report

Attention: Patch coverage is 71.84211% with 107 lines in your changes missing coverage. Please review.

Project coverage is 88.97%. Comparing base (5d007fb) to head (cecad67).

Files with missing lines Patch % Lines
src/pygaps/graphing/prediction_graphs.py 24.61% 49 Missing ⚠️
src/pygaps/prediction/enthalpy_to_isotherm.py 59.72% 29 Missing ⚠️
src/pygaps/core/adsorbate.py 68.42% 6 Missing ⚠️
src/pygaps/characterisation/enth_sorp_whittaker.py 90.74% 5 Missing ⚠️
src/pygaps/core/modelisotherm.py 37.50% 5 Missing ⚠️
src/pygaps/utilities/math_utilities.py 20.00% 4 Missing ⚠️
src/pygaps/characterisation/models_thickness.py 66.66% 2 Missing ⚠️
src/pygaps/modelling/__init__.py 75.00% 2 Missing ⚠️
src/pygaps/modelling/chemiphysisorption.py 97.91% 1 Missing ⚠️
src/pygaps/modelling/dslangmuir.py 90.90% 1 Missing ⚠️
... and 3 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #54      +/-   ##
===========================================
- Coverage    90.18%   88.97%   -1.22%     
===========================================
  Files           73       77       +4     
  Lines         5306     5612     +306     
===========================================
+ Hits          4785     4993     +208     
- Misses         521      619      +98     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pauliacomi
Copy link
Owner

relevant tests look good

@pauliacomi pauliacomi merged commit 53bc25a into pauliacomi:develop Jan 7, 2025
7 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants