INNER CODE UNIT · Python
polarization_plot1
ECSIM/pem-dataset1 · Notebooks/functions.py:205
def polarization_plot1(data, RH, P, NP=None, MC=None):
"""
Polarization plot function 1.
:param data: input data
:type data: numpy array
:param RH: Relative humidity (RH%)
:type RH: float
:param P: Pressure (psi)
:type P: float
:param NP: Nafion percent
:type NP: float
:param MC: Membrane compression
:type MC: float
:return: None
"""
filtered_data = data[data[:, 4] == RH]
filtered_data = filtered_data[filtered_data[:, 3] == P]