CSVDataset#

class pyedb.dotnet.database.Variables.CSVDataset(csv_file=None, separator=None, units_dict=None, append_dict=None, valid_solutions=True, invalid_solutions=False)#

Reads in a CSV file and extracts data, which can be augmented with constant values.

Parameters:
csv_filestr, optional

Input file consisting of delimited data with the first line as the header. The CSV value includes the header and data, which supports AEDT units information such as "1.23Wb". You can also augment the data with constant values.

separatorstr, optional

Value to use for the delimiter. The default is``None`` in which case a comma is assumed.

units_dictdict, optional

Dictionary consisting of {Variable Name: unit} to rescale the data if it is not in the desired unit system.

append_dictdict, optional

Dictionary consisting of {New Variable Name: value} to add variables with constant values to all data points. This dictionary is used to add multiple sweeps to one result file.

valid_solutionsbool, optional

The default is True.

invalid_solutionsbool, optional

The default is False.

Overview#

next

Yield the next row.

number_of_rows

Number of rows.

number_of_columns

Number of columns.

header

Header.

data

Data.

path

Path.

__getitem__

__add__

__iadd__

Incrementally add the dataset in one CSV file to a dataset in another CSV file.

__iter__

__next__

Import detail#

from pyedb.dotnet.database.Variables import CSVDataset

Property detail#

property CSVDataset.number_of_rows#

Number of rows.

property CSVDataset.number_of_columns#

Number of columns.

property CSVDataset.header#

Header.

property CSVDataset.data#

Data.

property CSVDataset.path#

Path.

Method detail#

CSVDataset.__getitem__(item)#
CSVDataset.__add__(other)#
CSVDataset.__iadd__(other)#

Incrementally add the dataset in one CSV file to a dataset in another CSV file.

CSVDataset.__iter__()#
CSVDataset.__next__()#
CSVDataset.next()#

Yield the next row.