- class matlantis_features.features.md.post_features.emd_viscosity.PostEMDViscosityFeatureResult(num_of_segments: int, viscosity: Dict[str, List[float]], viscosity_std: Dict[str, List[float]], time: ndarray, acf_segment: ndarray, acf_avg: ndarray, vis_segment: ndarray, vis_avg: ndarray)#
-
Bases:
object
A dataclass for result of PostEMDViscosityFeature.
Methods
__init__
(num_of_segments, viscosity, …)plot
([plt_name])Plot the result.
to_dataframe
([csv_name])Convert the result to the Pandas DataFrame object.
- __init__(num_of_segments: int, viscosity: Dict[str, List[float]], viscosity_std: Dict[str, List[float]], time: ndarray, acf_segment: ndarray, acf_avg: ndarray, vis_segment: ndarray, vis_avg: ndarray) None #
- plot(plt_name: Optional[str] = None) Figure #
-
Plot the result.
- Parameters
-
plt_name (str or None, optional) – File name to write the plot. Supported formats include ‘png’ ‘jpg’ ‘jpeg’ ‘webp’
‘svg’ and ‘pdf’. If ‘None’ is provided, the figure will not be saved.
Defaults to None. - Returns
-
Resulting plotly’s graph object.
- Return type
-
go.Figure
- to_dataframe(csv_name: Optional[str] = None) DataFrame #
-
Convert the result to the Pandas DataFrame object.
- Parameters
-
csv_name (str or None, optional) – CSV file name to write the DataFrame. If None, no CSV file is generated.
Defaults to None. - Returns
-
Resulting Pandas DataFrame object.
- Return type
-
pd.DataFrame
Attributes
- num_of_segments: int#
- viscosity: Dict[str, List[float]]#
- viscosity_std: Dict[str, List[float]]#
- time: ndarray#
- acf_segment: ndarray#
- acf_avg: ndarray#
- vis_segment: ndarray#
- vis_avg: ndarray#
Resource Library
matlantis_features.features.md.post_features.emd_viscosity.PostEMDViscosityFeatureResult