SDDSlib
|
Python script providing the SDDS Python module. More...
Go to the source code of this file.
Classes | |
class | sdds.SDDS |
A class to represent and manipulate SDDS datasets. More... | |
Functions | |
sdds.sdds_data_type_to_string (data_type_code) | |
Converts a numeric SDDS data type code to its string representation. | |
sdds.demo1 (output) | |
Demonstrates how to save a demo SDDS file using the SDDS class. | |
sdds.demo2 (output) | |
Demonstrates how to save a demo SDDS file using the SDDS class with simplified definitions. | |
sdds.demo3 (output) | |
Demonstrates how to save a demo SDDS file using sddsdata commands directly. | |
sdds.demo4 (output) | |
Demonstrates how to save a demo SDDS file using sddsdata commands and writing one row at a time. | |
sdds.demo5 (output) | |
Demonstrates how to open an existing SDDS file and add rows to the last page without loading the whole file into memory. | |
sdds.demo6 (output) | |
Demonstrates how to open an existing SDDS file and add a new page. | |
Variables | |
sdds.SDDS_VERBOSE_PrintErrors = SDDS.SDDS_VERBOSE_PrintErrors | |
sdds.SDDS_EXIT_PrintErrors = SDDS.SDDS_EXIT_PrintErrors | |
sdds.SDDS_CHECK_OKAY = SDDS.SDDS_CHECK_OKAY | |
sdds.SDDS_CHECK_NONEXISTENT = SDDS.SDDS_CHECK_NONEXISTENT | |
sdds.SDDS_CHECK_WRONGTYPE = SDDS.SDDS_CHECK_WRONGTYPE | |
sdds.SDDS_CHECK_WRONGUNITS = SDDS.SDDS_CHECK_WRONGUNITS | |
sdds.SDDS_LONGDOUBLE = SDDS.SDDS_LONGDOUBLE | |
sdds.SDDS_DOUBLE = SDDS.SDDS_DOUBLE | |
sdds.SDDS_REAL64 = SDDS.SDDS_REAL64 | |
sdds.SDDS_FLOAT = SDDS.SDDS_FLOAT | |
sdds.SDDS_REAL32 = SDDS.SDDS_REAL32 | |
sdds.SDDS_LONG64 = SDDS.SDDS_LONG64 | |
sdds.SDDS_INT64 = SDDS.SDDS_INT64 | |
sdds.SDDS_ULONG64 = SDDS.SDDS_ULONG64 | |
sdds.SDDS_UINT64 = SDDS.SDDS_UINT64 | |
sdds.SDDS_LONG = SDDS.SDDS_LONG | |
sdds.SDDS_INT32 = SDDS.SDDS_INT32 | |
sdds.SDDS_ULONG = SDDS.SDDS_ULONG | |
sdds.SDDS_UINT32 = SDDS.SDDS_UINT32 | |
sdds.SDDS_SHORT = SDDS.SDDS_SHORT | |
sdds.SDDS_INT16 = SDDS.SDDS_INT16 | |
sdds.SDDS_USHORT = SDDS.SDDS_USHORT | |
sdds.SDDS_UINT16 = SDDS.SDDS_UINT16 | |
sdds.SDDS_STRING = SDDS.SDDS_STRING | |
sdds.SDDS_CHARACTER = SDDS.SDDS_CHARACTER | |
sdds.SDDS_NUM_TYPES = SDDS.SDDS_NUM_TYPES | |
sdds.SDDS_BINARY = SDDS.SDDS_BINARY | |
sdds.SDDS_ASCII = SDDS.SDDS_ASCII | |
sdds.SDDS_FLUSH_TABLE = SDDS.SDDS_FLUSH_TABLE | |
Python script providing the SDDS Python module.
This module provides the SDDS
class and associated methods to load, manipulate, and save SDDS files. It supports both ASCII and binary SDDS formats and provides functionality to read, write, and manipulate SDDS data.
Dependencies: sddsdata module
Definition in file sdds.py.
sdds.demo1 | ( | output | ) |
Demonstrates how to save a demo SDDS file using the SDDS class.
Args: output (str): The output SDDS filename to save the demo data.
This function creates an SDDS object, populates it with sample data, and saves it to the specified output file.
Definition at line 1326 of file sdds.py.
sdds.demo2 | ( | output | ) |
Demonstrates how to save a demo SDDS file using the SDDS class with simplified definitions.
Args: output (str): The output SDDS filename to save the demo data.
This function shows how to use simplified methods to define parameters, arrays, and columns.
Definition at line 1397 of file sdds.py.
sdds.demo3 | ( | output | ) |
Demonstrates how to save a demo SDDS file using sddsdata
commands directly.
Args: output (str): The output SDDS filename to save the demo data.
This function shows how to use sddsdata
module functions directly to create and save an SDDS file.
Definition at line 1453 of file sdds.py.
sdds.demo4 | ( | output | ) |
Demonstrates how to save a demo SDDS file using sddsdata
commands and writing one row at a time.
Args: output (str): The output SDDS filename to save the demo data.
This function shows how to write data to an SDDS file one row at a time, useful for logging applications.
Definition at line 1514 of file sdds.py.
sdds.demo5 | ( | output | ) |
Demonstrates how to open an existing SDDS file and add rows to the last page without loading the whole file into memory.
Args: output (str): The output SDDS filename to append data.
This function shows how to append data to an existing SDDS file efficiently.
Definition at line 1582 of file sdds.py.
sdds.demo6 | ( | output | ) |
Demonstrates how to open an existing SDDS file and add a new page.
Args: output (str): The output SDDS filename to append data.
This function shows how to append a new page to an existing SDDS file.
Definition at line 1617 of file sdds.py.
sdds.sdds_data_type_to_string | ( | data_type_code | ) |
Converts a numeric SDDS data type code to its string representation.
Args: data_type_code (int): Numeric code of the SDDS data type.
Returns: str: String representation of the SDDS data type.
Definition at line 1300 of file sdds.py.