Commit ba5d3b73 authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Removed comment and moved ground calculation outside of loop.

parent a0e130a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -170,9 +170,9 @@ def place_points_in_overlap(nodes, geom, cam_type="csm",
                       adjusted=geom,
                       pointtype=2) # Would be 3 or 4 for ground
        
        gnd = csmapi.EcefCoord(x, y, z)
        for node in nodes:
            if cam_type == "csm":
                gnd = csmapi.EcefCoord(x, y, z)
                image_coord = node.camera.groundToImage(gnd)
                sample, line = image_coord.samp, image_coord.line
            if cam_type == "isis":
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@ from autocnet.graph.node import Node
import csmapi


# @patch('autocnet.spatial.overlap.iterative_phase', return_value=(0, 1, 2))
@patch('autocnet.cg.cg.distribute_points_in_geom', return_value=[(0, 0), (5, 5), (10, 10)])
def test_place_points_in_overlap(point_distributer):
    # Mock setup