Closed
Description
Hi @kdheepak,
I was writing some tests for DiTTo and I noticed something weird when calling class_to_dataframe
on LineGeometries
and WireData
. It seems like the values I'm getting do not make any sense.
Here is the master file I'm using for the test:
Clear
New Circuit.test_circuit
New Wiredata.ACSR336 GMR=0.0255000 DIAM=0.7410000 RAC=0.3060000 NormAmps=530.0000 Runits=mi radunits=in gmrunits=ft
New Wiredata.ACSR1/0 GMR=0.0044600 DIAM=0.3980000 RAC=1.120000 NormAmps=230.0000 Runits=mi radunits=in gmrunits=ft
New Linegeometry.HC2_336_1neut_0Mess nconds=4 nphases=3
~ cond=1 Wire=acsr336 x=-1.2909 h=13.716 units=m
~ cond=2 Wire=acsr336 x=-0.1530096 h=4.1806368 units=ft
~ cond=3 Wire=acsr336 x=0.5737 h=13.716 units=m
~ cond=4 Wire= ACSR1/0 x=0 h=14.648 ! units=m ! neutral
New Line.Line1 Bus1=bus1.1.2.3 Bus2=bus2.1.2.3
~ Geometry= HC2_336_1neut_0Mess
~ Length=300 units=ft
Set Voltagebases=[4.8,34.5,115.0]
Calcvoltagebases
Solve
And this is what I get:
In [1]: import opendssdirect as dss
In [2]: dss.Basic.Version()
Out[2]: u'Version Version 8.0 release 1 build 0\n (64-bit build); License Status: Open '
In [3]: dss.run_command("redirect Master.dss")
Out[3]: u''
In [4]: dss.utils.is_pandas_installed=False
In [5]: dss.utils.class_to_dataframe("linegeometry")
Out[5]:
{'linegeometry.hc2_336_1neut_0mess': {u'B0': u'',
u'B1': u'',
u'C0': u'',
u'C1': u'',
u'EarthModel': u'',
u'Rg': [u'acsr336 acsr336 acsr336 ACSR1/0'],
u'Switch': [u'acsr336 acsr336 acsr336 ACSR1/0'],
u'Xg': u'',
u'basefreq': u'',
u'bus1': u'4',
u'bus2': u'3',
u'cmatrix': u'ACSR1/0',
u'cncables': u'',
u'emergamps': u'',
u'enabled': u'',
u'faultrate': u'',
u'geometry': u'',
u'length': u'ACSR1/0',
u'like': u'',
u'linecode': u'4',
u'normamps': u'',
u'pctperm': u'',
u'phases': u'0',
u'r0': u'0',
u'r1': u'14.648',
u'repair': u'',
u'rho': u'',
u'rmatrix': [u'acsr336 acsr336 acsr336 ACSR1/0'],
u'spacing': u'',
u'tscables': u'',
u'units': u'',
u'wires': u'',
u'x0': u'0',
u'x1': u'm',
u'xmatrix': u'ACSR1/0'}}
In [7]: dss.utils.class_to_dataframe("wiredata")
'wiredata.acsr336': {u'B0': u'',
u'B1': u'',
u'C0': u'',
u'C1': u'0.3980000',
u'EarthModel': u'',
u'Rg': u'',
u'Switch': u'',
u'Xg': u'',
u'basefreq': u'',
u'bus1': u'-1',
u'bus2': u'1.120000',
u'cmatrix': u'',
u'cncables': u'',
u'emergamps': u'',
u'enabled': u'',
u'faultrate': u'',
u'geometry': u'',
u'length': u'0.0044600',
u'like': u'',
u'linecode': u'mi',
u'normamps': u'',
u'pctperm': u'',
u'phases': u'ft',
u'r0': u'230.0000',
u'r1': u'-1',
u'repair': u'',
u'rho': u'',
u'rmatrix': u'',
u'spacing': u'',
u'tscables': u'',
u'units': u'',
u'wires': u'',
u'x0': u'-1',
u'x1': u'in',
u'xmatrix': u''}}