Skip to content

Commit 19b6fd1

Browse files
committed
black correction
1 parent ef22a98 commit 19b6fd1

File tree

11 files changed

+101
-31
lines changed

11 files changed

+101
-31
lines changed

examples/02_eddy_identification/pet_eddy_detection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from py_eddy_tracker.dataset.grid import RegularGridDataset
1313
from py_eddy_tracker import data
1414

15+
1516
# %%
1617
def start_axes(title):
1718
fig = plt.figure(figsize=(13, 5))

examples/08_tracking_manipulation/pet_track_anim.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"""
88
from matplotlib import pyplot as plt
99
from matplotlib.collections import LineCollection
10-
import matplotlib.transforms as mt
1110
from numpy import arange
1211
from py_eddy_tracker.observations.tracking import TrackEddiesObservations
1312
from py_eddy_tracker.poly import create_vertice

examples/10_tracking_diagnostics/pet_propagation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from numpy import arange, empty
1111
from numba import njit
1212

13+
1314
# %%
1415
# We will create a function compile with numba, to compute a field which contains curvilign distance
1516
@njit(cache=True)

src/py_eddy_tracker/__init__.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,11 @@
1616
You should have received a copy of the GNU General Public License
1717
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
1818
19-
Copyright (c) 2014-2017 by Antoine Delepoulle and Evan Mason
20-
19+
Copyright (c) 2014-2020 by Evan Mason
20+
2121
===========================================================================
22-
23-
__init__.py
24-
25-
Version 3.0.0
26-
27-
===========================================================================
28-
2922
"""
23+
3024
from argparse import ArgumentParser
3125
import logging
3226
import numpy
@@ -329,7 +323,8 @@ def parse_args(self, *args, **kwargs):
329323
nc_attr=dict(
330324
longname="speed radius scale",
331325
units="m",
332-
description="Radius of a circle whose area is equal to that enclosed by the contour of maximum circum-average speed",
326+
description="Radius of a circle whose area is equal to that \
327+
enclosed by the contour of maximum circum-average speed",
333328
),
334329
),
335330
track=dict(

src/py_eddy_tracker/appli.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
# -*- coding: utf-8 -*-
2+
"""
3+
===========================================================================
4+
This file is part of py-eddy-tracker.
5+
6+
py-eddy-tracker is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
py-eddy-tracker is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Copyright (c) 2014-2020 by Evan Mason
20+
21+
===========================================================================
22+
"""
23+
224
from py_eddy_tracker import EddyParser
325
from py_eddy_tracker.observations.tracking import TrackEddiesObservations
426
from netCDF4 import Dataset

src/py_eddy_tracker/dataset/grid.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ def setup_coordinates(self):
424424
x_name, y_name = self.coordinates
425425
if self.is_centered:
426426
logger.info("Grid center")
427-
self.x_c = self.vars[x_name].astype('float64')
428-
self.y_c = self.vars[y_name].astype('float64')
427+
self.x_c = self.vars[x_name].astype("float64")
428+
self.y_c = self.vars[y_name].astype("float64")
429429

430430
self.x_bounds = concatenate((self.x_c, (2 * self.x_c[-1] - self.x_c[-2],)))
431431
self.y_bounds = concatenate((self.y_c, (2 * self.y_c[-1] - self.y_c[-2],)))
@@ -437,8 +437,8 @@ def setup_coordinates(self):
437437
self.y_bounds[-1] -= d_y[-1] / 2
438438

439439
else:
440-
self.x_bounds = self.vars[x_name].astype('float64')
441-
self.y_bounds = self.vars[y_name].astype('float64')
440+
self.x_bounds = self.vars[x_name].astype("float64")
441+
self.y_bounds = self.vars[y_name].astype("float64")
442442

443443
if len(self.x_dim) == 1:
444444
self.x_c = self.x_bounds.copy()

src/py_eddy_tracker/eddy_feature.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@
1717
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
1818
1919
Copyright (c) 2014-2020 by Evan Mason
20-
Email: evanmason@gamil.com
20+
Email: evanmason@gmail.com
2121
===========================================================================
22-
23-
Version 3.0
24-
25-
===========================================================================
26-
2722
"""
2823

2924
import logging

src/py_eddy_tracker/generic.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# -*- coding: utf-8 -*-
22
"""
3+
===========================================================================
4+
This file is part of py-eddy-tracker.
5+
6+
py-eddy-tracker is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
py-eddy-tracker is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Copyright (c) 2014-2020 by Evan Mason
20+
21+
===========================================================================
322
"""
23+
424
from numpy import (
525
sin,
626
pi,
@@ -334,4 +354,3 @@ def wrap_longitude(x, y, ref, cut=False):
334354
for i in range(nb):
335355
out[i] = (x[i] - ref) % 360 + ref
336356
return out, y
337-

src/py_eddy_tracker/gui.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
===========================================================================
4+
This file is part of py-eddy-tracker.
5+
6+
py-eddy-tracker is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
py-eddy-tracker is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Copyright (c) 2014-2020 by Evan Mason
20+
21+
===========================================================================
22+
"""
23+
124
import numpy as np
225
from datetime import datetime
326
import matplotlib.pyplot as plt

src/py_eddy_tracker/poly.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
# -*- coding: utf-8 -*-
22
"""
3+
===========================================================================
4+
This file is part of py-eddy-tracker.
5+
6+
py-eddy-tracker is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
py-eddy-tracker is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with py-eddy-tracker. If not, see <http://www.gnu.org/licenses/>.
18+
19+
Copyright (c) 2014-2020 by Evan Mason
20+
21+
===========================================================================
322
"""
23+
424
from numpy import empty, where, array
525
from numba import njit, prange, types as numba_types
626
from Polygon import Polygon

0 commit comments

Comments
 (0)