ResSimpy.Nexus.nexus_file_operations
Functions
Loop through lines of Nexus input file content looking for common input data, e.g., units such as ENGLISH or METRIC, temperature units such as FAHR or CELSIUS, DATEFORMAT, etc., as defined in Nexus manual. |
|
Checks a list of tokens for whether it exists in a string and returns the token that matched. |
|
Given a line of Nexus input file content looking for common input data, e.g., units such as ENGLISH or METRIC, temperature units such as FAHR or CELSIUS, DATEFORMAT, etc., as defined in Nexus manual. |
|
Checks if the text line contains the supplied token and is not commented out :param token: keyword value to search the line for :type token: str :param line: string to search the token in :type line: str |
|
Removes unwanted characters from a string |
|
Takes a value and returns the value but converted to specified type. if na_to_none True then will |
|
Creates a new text file at the requested destination substituting the supplied values. |
|
Expands out include files. |
|
Gets the next non blank value in a list of lines. |
|
Function that returns the result of get_token_value if a value is found, otherwise it raises a ValueError. |
|
Returns the full file path including the base directories if they aren't present in the string. |
|
Returns a sequential list of values as long as the number of tokens requested. |
|
Gets the next non blank value in a list of lines. |
|
Gets the previous non blank value in a list of lines. |
|
Gets the table headers for a given line in a file. |
|
Gets the value following a token if supplied with a line containing the token. |
|
Reads the text file into a variable. |
|
Loads a table row by row to an object provided in the row_object. |
|
Returns true if a Nexus include file begins with one of the Nexus grid array keywords. |
|
Checks if a valid Nexus token has been found in the supplied line. |
|
From a list of strings that represents a table, generate a Pandas dataframe representation of the table. |
|
Strips all of the inline, single and multi line comments out of a file. |
|
Reads in a line from a nexus table with a given set of headers and populates each of those values into a corresponding dictionary. |
|
Returns true if a token is found in the specified file. |