Skip to content

Commit

Permalink
Merge pull request #83 from callumrollo/callum-0
Browse files Browse the repository at this point in the history
refactor: remove unused imports and variables
  • Loading branch information
rcaneill committed Feb 14, 2024
2 parents d973292 + 9ca4801 commit 42098d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion xnemogcm/domcfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from pathlib import Path
import numpy as np
import xarray as xr

Expand Down
2 changes: 0 additions & 2 deletions xnemogcm/namelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ def open_namelist(datadir=None, files=None, ref=True, cfg=True):
f"Too many files given for the namelists, please check. Got {files}"
)

namcfg = {}
namref = {}
ds = xr.Dataset()

for (load, name) in [[ref, "ref"], [cfg, "cfg"]]:
Expand Down
4 changes: 1 addition & 3 deletions xnemogcm/nemo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
from functools import partial
import re
from pathlib import Path
import xarray as xr

from . import arakawa_points as akp
Expand All @@ -15,7 +13,7 @@ def _get_point_type(filename, description):
point_type_desc = None

# Try with filename
all_points_str = a = "|".join(akp.ALL_POINTS)
a = "|".join(akp.ALL_POINTS)
m = re.search(f"grid_({a})", filename)
if m:
point_type_fn = m.groups()[0]
Expand Down

0 comments on commit 42098d4

Please sign in to comment.