captest.io.DataLoader

class captest.io.DataLoader(path: str = './data/', loc: dict | None = None, sys: dict | None = None, file_reader: object = <function file_reader>, files_to_load: list | None = None, failed_to_load: list | None = None)

Class to load SCADA data and return a CapData object.

Supports loading from local filesystems and S3 buckets. The optional``s3fs`` package must be installed for S3 support.

__init__(path: str = './data/', loc: dict | None = None, sys: dict | None = None, file_reader: object = <function file_reader>, files_to_load: list | None = None, failed_to_load: list | None = None) None

Methods

__init__([path, loc, sys, file_reader, ...])

drop_duplicate_rows()

file_reader(**kwargs)

Read measured solar data from a csv file.

join_files()

Combine the DataFrames of loaded_files into a single DataFrame.

load([extension, summary, verbose, ...])

Load file(s) of timeseries data from SCADA / DAS systems.

reindex()

reindex_loaded_files([verbose])

Reindex files to ensure no missing indices and find frequency for each file.

set_files_to_load([extension])

Set files_to_load attribute to a list of filepaths.

sort_data()

Attributes

failed_to_load

files_to_load

loc

path

sys