ThermoPyle.
CSVFluid
(pathToFile)[source]¶A class that will help work with ThermoFluid data contained in CSV/JSON files.
Parameters: | pathToFile (str) – The name of the files you want to use, NOT the path. Must have both a json and a CSV file for this purpose. |
---|
data
¶The data as read by pandas for the given fluid
Type: | pandas.DataFrame |
---|
columns
¶What variable is on the y-axis
Type: | List[Text] |
---|
vars
¶a list of xvar, yvar, zvar
Type: | List[Text] |
---|
units
¶the units for xvar, yvar, zvar, in that order.
Type: | List[Text] |
---|
meta
¶a PMap containing metadata related to the current fluid.
Type: | pyrsistent._pmap.PMap |
---|
add_column
(variables)[source]¶Adds a column to the dataframe
Return type: | None |
---|
changeOrder
(order)[source]¶Changes order of the columns:
Parameters: | order (List[Text]) – is a permutation of length 3 on vars. |
---|---|
Return type: | None |