opendssdirect.utils#

Module Contents#

Classes#

Iterator

Functions#

capacitors_to_dataframe

class_to_dataframe

Export all DSS properties for a selected DSS object class.

fuses_to_dataframe

generators_to_dataframe

getmembers

isource_to_dataframe

lines_to_dataframe

loads_to_dataframe

loadshape_to_dataframe

meters_to_dataframe

monitor_to_dataframe

Return the data from current active monitor as a Pandas DataFrame

monitors_to_dataframe

pvsystems_to_dataframe

reclosers_to_dataframe

regcontrols_to_dataframe

relays_to_dataframe

run_command

Use the Text interface of OpenDSS, grabbing all output text in a string.

sensors_to_dataframe

to_dataframe

Iterate and export all data from the classic API class/module to a dataframe.

transformers_to_dataframe

vsources_to_dataframe

xycurves_to_dataframe

Data#

is_pandas_installed

API#

class opendssdirect.utils.Iterator(module, function)#
__init__(module, function)#
__iter__()#
opendssdirect.utils.capacitors_to_dataframe(dss=None)#
opendssdirect.utils.class_to_dataframe(class_name, dss=None, transform_string=None, clean_data=None)#

Export all DSS properties for a selected DSS object class.

This function uses the ActiveClass, Element and Properties interfaces to iterate through the elements, extracting the value of each DSS property.

Caveats are:

  • All properties are exported; this can be misleading since the order of definition and which properties are used can change how the DSS models behave.

  • All data is exported as text and must be reinterpreted in Python.

  • It can be slow for large circuits.

Due to these caveats, the function has been marked deprecated. Still, it has been used by many third-party software as a way to extract important data, so it will be kept for backwards compatibility.

For alternatives:

opendssdirect.utils.fuses_to_dataframe(dss=None)#
opendssdirect.utils.generators_to_dataframe(dss=None)#
opendssdirect.utils.getmembers(module)#
opendssdirect.utils.is_pandas_installed#

True

opendssdirect.utils.isource_to_dataframe(dss=None)#
opendssdirect.utils.lines_to_dataframe(dss=None)#
opendssdirect.utils.loads_to_dataframe(dss=None)#
opendssdirect.utils.loadshape_to_dataframe(dss=None)#
opendssdirect.utils.meters_to_dataframe(dss=None)#
opendssdirect.utils.monitor_to_dataframe(dss=None)#

Return the data from current active monitor as a Pandas DataFrame

opendssdirect.utils.monitors_to_dataframe(dss=None)#
opendssdirect.utils.pvsystems_to_dataframe(dss=None)#
opendssdirect.utils.reclosers_to_dataframe(dss=None)#
opendssdirect.utils.regcontrols_to_dataframe(dss=None)#
opendssdirect.utils.relays_to_dataframe(dss=None)#
opendssdirect.utils.run_command(text, dss=None)#

Use the Text interface of OpenDSS, grabbing all output text in a string.

This is deprecated since it doesn’t handle errors as exceptions and can confuse users.

Prefer using dss("commands"), dss.Text.Command("command"), or dss.Text.Commands("commands"),.

opendssdirect.utils.sensors_to_dataframe(dss=None)#
opendssdirect.utils.to_dataframe(module)#

Iterate and export all data from the classic API class/module to a dataframe.

If Pandas is not available, a dict of dicts is returned.

opendssdirect.utils.transformers_to_dataframe(dss=None)#
opendssdirect.utils.vsources_to_dataframe(dss=None)#
opendssdirect.utils.xycurves_to_dataframe(dss=None)#