Skip to content

Commit 57408b8

Browse files
flake8 corrections
1 parent fe79f1b commit 57408b8

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/py_eddy_tracker/observations/groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def advect(x, y, c, t0, n_days):
8989

9090

9191
def create_particles(eddies, step):
92-
"""create particles only inside speed contour. Avoir creating too large numpy arrays, only to me masked
92+
"""create particles only inside speed contour. Avoid creating too large numpy arrays, only to me masked
9393
9494
:param eddies: network where eddies are
9595
:type eddies: network

src/py_eddy_tracker/observations/network.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,9 +1472,10 @@ def date2file(julian_day):
14721472
particle_candidate(
14731473
c, self, step_mesh, _t, itb_final, ptb_final, n_days=-n_days
14741474
)
1475-
logger.info(
1476-
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%}) : {time.time()-_timestamp:5.2f}s"
1477-
)
1475+
logger.info((
1476+
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%})"
1477+
f" : {time.time()-_timestamp:5.2f}s"
1478+
))
14781479

14791480
return itb_final, ptb_final
14801481

@@ -1535,9 +1536,10 @@ def date2file(julian_day):
15351536
particle_candidate(
15361537
c, self, step_mesh, _t, itf_final, ptf_final, n_days=n_days
15371538
)
1538-
logger.info(
1539-
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%}) : {time.time()-_timestamp:5.2f}s"
1540-
)
1539+
logger.info((
1540+
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%})"
1541+
f" : {time.time()-_timestamp:5.2f}s"
1542+
))
15411543
return itf_final, ptf_final
15421544

15431545

0 commit comments

Comments
 (0)