Skip to content

Commit

Permalink
Rename outfile -> optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Nov 4, 2023
1 parent 2d3c5bb commit 5c33bc2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ def test_intel(self):
g = load_g2o_se2(intel)
g.optimize()

outfile = os.path.join(os.path.dirname(__file__), "input_INTEL_optimized.g2o")
optimized = os.path.join(os.path.dirname(__file__), "input_INTEL_optimized.g2o")

# An assertion so that linting doesn't complain about `outfile` being unused
self.assertEqual(os.path.dirname(__file__), os.path.dirname(outfile))
# An assertion so that linting doesn't complain about `optimized` being unused
self.assertEqual(os.path.dirname(__file__), os.path.dirname(optimized))

# Uncomment this line to write the output file
# g.to_g2o(outfile)
# g.to_g2o(optimized)

def test_parking_garage(self):
"""Test for optimizing the parking garage dataset."""
Expand All @@ -256,13 +256,13 @@ def test_parking_garage(self):
g = load_g2o_se3(parking_garage)
g.optimize()

outfile = os.path.join(os.path.dirname(__file__), "parking-garage_optimized.g2o")
optimized = os.path.join(os.path.dirname(__file__), "parking-garage_optimized.g2o")

# An assertion so that linting doesn't complain about `outfile` being unused
self.assertEqual(os.path.dirname(__file__), os.path.dirname(outfile))
# An assertion so that linting doesn't complain about `optimized` being unused
self.assertEqual(os.path.dirname(__file__), os.path.dirname(optimized))

# Uncomment this line to write the output file
# g.to_g2o(outfile)
# g.to_g2o(optimized)


if __name__ == '__main__':
Expand Down

0 comments on commit 5c33bc2

Please sign in to comment.