Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
flake8 corrections
  • Loading branch information
ludwigVonKoopa committed Jun 21, 2021
commit 57408b8f1cee5832e6a40c1ac77c7790de0220ea
2 changes: 1 addition & 1 deletion src/py_eddy_tracker/observations/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def advect(x, y, c, t0, n_days):


def create_particles(eddies, step):
"""create particles only inside speed contour. Avoir creating too large numpy arrays, only to me masked
"""create particles only inside speed contour. Avoid creating too large numpy arrays, only to me masked

:param eddies: network where eddies are
:type eddies: network
Expand Down
14 changes: 8 additions & 6 deletions src/py_eddy_tracker/observations/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,9 +1472,10 @@ def date2file(julian_day):
particle_candidate(
c, self, step_mesh, _t, itb_final, ptb_final, n_days=-n_days
)
logger.info(
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%}) : {time.time()-_timestamp:5.2f}s"
)
logger.info((
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%})"
f" : {time.time()-_timestamp:5.2f}s"
))

return itb_final, ptb_final

Expand Down Expand Up @@ -1535,9 +1536,10 @@ def date2file(julian_day):
particle_candidate(
c, self, step_mesh, _t, itf_final, ptf_final, n_days=n_days
)
logger.info(
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%}) : {time.time()-_timestamp:5.2f}s"
)
logger.info((
f"coherence {_t} / {range_end-1} ({(_t - range_start) / (range_end - range_start-1):.1%})"
f" : {time.time()-_timestamp:5.2f}s"
))
return itf_final, ptf_final


Expand Down