@@ -5666,3 +5666,37 @@ def _run(ctx: OpenDSSDirect, case_list, converged, results):
56665666 # Check if we actually got a lower time
56675667 if len (ctxs ) > 2 :
56685668 assert dt_thread < dt_seq
5669+
5670+
5671+ def test_geometry_conductors (dss ):
5672+ dss ('''
5673+ clear
5674+ new circuit.test
5675+ New WireData.A diam=0.793 radunits=in GMRac=0.3 GMRunits=in Rac=0.1968 Runits=mi
5676+ New WireData.B diam=0.793 radunits=in GMRac=0.3 GMRunits=in Rac=0.1968 Runits=mi
5677+ New LineGeometry.sample_linegeo_reduce nconds=4 nphases=3 reduce=yes
5678+ ~ cond=1 wire=A x=-3.67 h=31.33 units=ft
5679+ ~ cond=2 wire=A x=0 h=31.33 units=ft
5680+ ~ cond=3 wire=A x=3.67 h=31.33 units=ft
5681+ ~ cond=4 wire=B x=0 h=26 units=ft
5682+ New LineGeometry.sample_linegeo_no_reduce nconds=4 nphases=3 reduce=no
5683+ ~ cond=1 wire=A x=-3.67 h=31.33 units=ft
5684+ ~ cond=2 wire=A x=0 h=31.33 units=ft
5685+ ~ cond=3 wire=A x=3.67 h=31.33 units=ft
5686+ ~ cond=4 wire=B x=0 h=26 units=ft
5687+ ''' )
5688+
5689+ LG = dss .LineGeometries
5690+ for name in ('sample_linegeo_no_reduce' , 'sample_linegeo_reduce' ):
5691+ LG .Name (name )
5692+ assert LG .Name () == name
5693+ assert LG .Conductors () == ['a' , 'a' , 'a' , 'b' ]
5694+ assert LG .Phases () == 3
5695+ assert LG .Nconds () == 4
5696+ print (LG .NormAmps ())
5697+ print (LG .EmergAmps ())
5698+ np .testing .assert_array_almost_equal (LG .Xcoords (), [- 3.67 , 0 , 3.67 , 0 ])
5699+ np .testing .assert_array_almost_equal (LG .Ycoords (), [31.33 , 31.33 , 31.33 , 26 ])
5700+ assert len (LG .Units ()) == 4
5701+
5702+
0 commit comments