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_file
str,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.- separator
str,optional Value to use for the delimiter. The default is``None`` in which case a comma is assumed.
- units_dict
dict,optional Dictionary consisting of
{Variable Name: unit}to rescale the data if it is not in the desired unit system.- append_dict
dict,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.
- csv_file
Overview#
Yield the next row. |
Number of rows. |
|
Number of columns. |
|
Header. |
|
Data. |
|
Path. |
Incrementally add the dataset in one CSV file to a dataset in another CSV file. |
|
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.