Skip to content

Commit 81ea054

Browse files
committed
linted
1 parent 11b30c3 commit 81ea054

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

analysis/src/analysis/__init__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
from numpy.char import index
21
import os
32

3+
from numpy.char import index
4+
45
# Ensure non-interactive backend for matplotlib to avoid Tkinter GUI usage
56
os.environ.setdefault("MPLBACKEND", "Agg")
67

7-
import numpy as np
8-
98
from argparse import ArgumentParser
10-
from pandas import read_csv, DataFrame
119
from pathlib import Path
1210

13-
from analysis.preprocess import preprocess_data
11+
import numpy as np
12+
from haversine import Unit, haversine_vector
13+
from pandas import DataFrame, read_csv
14+
1415
from analysis.plotting import plot_performance, plot_relative_performance
15-
from haversine import haversine_vector, Unit
16+
from analysis.preprocess import preprocess_data
1617

1718
__version__ = "0.1.0"
1819

analysis/src/analysis/plotting.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,20 @@
2525
- PyGMT: https://www.pygmt.org
2626
"""
2727

28+
from enum import Enum
29+
from pathlib import Path
30+
from typing import Union
31+
32+
import numpy as np
33+
import pygmt
34+
import xarray as xr
2835
from cartopy import crs as ccrs
2936
from cartopy.io import img_tiles as cimgt
3037
from haversine import Unit, haversine_vector
3138
from matplotlib import pyplot as plt
3239
from matplotlib.figure import Figure
33-
import numpy as np
34-
from pathlib import Path
3540
from pandas import DataFrame
3641
from pygmt.io import load_dataarray
37-
from enum import Enum
38-
from typing import Union
39-
import pygmt
40-
import xarray as xr
4142

4243

4344
def inflate_bounds(

analysis/src/analysis/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
from concurrent import futures
88
from pathlib import Path
99

10+
import matplotlib.pyplot as plt
1011
import pandas as pd
1112
from pygmt.datasets import (
1213
load_earth_free_air_anomaly,
1314
load_earth_magnetic_anomaly,
1415
load_earth_relief,
1516
)
1617
from tqdm import tqdm
17-
import matplotlib.pyplot as plt
1818

1919
from analysis.plotting import inflate_bounds, plot_street_map
2020

0 commit comments

Comments
 (0)