Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Jun 2, 2022
1 parent 16854c0 commit 46ee100
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/linearbestisorouter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_step(self):
res = self.routing_obj.step()
i += 1

self.assertEqual(i, 7)
self.assertEqual(i, 5)
self.assertEqual(not res.path, False)

class checkRoute_highWind_mockIsland_3(unittest.TestCase):
Expand All @@ -177,7 +177,7 @@ def test_step(self):
res = self.routing_obj.step()
i += 1

self.assertEqual(i, 7)
self.assertEqual(i, 9)
self.assertEqual(not res.path, False)

class checkRoute_out_of_scope(unittest.TestCase):
Expand Down Expand Up @@ -227,6 +227,6 @@ def test_step(self):
res = self.routing_obj.step()
i += 1

self.assertEqual(i, 4)
self.assertEqual(i, 5)
self.assertEqual(not res.path, False)

2 changes: 1 addition & 1 deletion tests/shortestpathrouter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_step(self):

path_to_end = res.path + [IsoPoint(self.track[-1])]
self.assertEqual( res.time, datetime.datetime.fromisoformat('2021-04-02 14:00:00'))
self.assertEqual(len(json.dumps(weatherrouting.utils.pathAsGeojson(path_to_end))), 1201)
self.assertEqual(len(json.dumps(weatherrouting.utils.pathAsGeojson(path_to_end))), 1197)


class TestRouting_mockIsland_5(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion weatherrouting/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__ (self, polarPath: str, f: FileIO = None):
def toString(self) -> str:
s = 'TWA\\TWS'
for x in self.tws:
s += f'\t{x}'
s += f'\t{x:.0f}'
s += '\n'

l = 0
Expand Down

0 comments on commit 46ee100

Please sign in to comment.