check_pressure_consistency#
- beatmap.core.check_pressure_consistency(df, nm, slope, intercept)#
Checks that relative pressure is consistent.
The relative pressure corresponding to nm is found from linear interpolation of the experiemental data. A second relative pressure is found by setting n to nm in the BET equation and solving for relative pressure. The two relative pressures are compared and must agree within 10% to pass this check.
- Parameters:
- dfdataframe
Dataframe of imported experimental isothermal adsorption data.
- nmarray
2D array of BET specific amount of adsorbate in the monolayer, the coordinates of the array corresponding to relative pressures, units [moles / gram].
- slopearray
2D array of slope values resulting from linear regression applied to relevant experimental data.
- interceptarray
2D array of y-intercept values resulting from linear regression applied to relevant experimental data.
- Returns:
- ndarray
Array of 1s and 0s where 0 corresponds to relative pressure values that do not agree within 10%, ie ranges that fail this check.