Skip to content

Commit

Permalink
✏️ Address lint
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Dec 30, 2024
1 parent 971ca71 commit 6fc98b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/cligen/daily_clifile_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def edit_clifile(
) -> bool:
"""Edit the climate file, run from thread."""
# Okay we have work to do
with open(clirow["filepath"], "r", encoding="utf8") as fh:
with open(clirow["filepath"], "r", encoding="utf8") as fh: # skipcq
clidata = fh.read()
pos = clidata.find(valid.strftime("%-d\t%-m\t%Y"))
if pos == -1:
Expand Down
8 changes: 5 additions & 3 deletions scripts/cligen/proctor_tile_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def assemble_geotiffs(dt: date):
0.01, 0.0, IEMRE.left - 0.005, 0.0, -0.01, north - 0.005
),
) as dst:
dst._set_all_scales([0.01])
dst._set_all_offsets([0.0])
dst._set_all_scales([0.01]) # skipcq
dst._set_all_offsets([0.0]) # skipcq
dst.write(np.flipud(res), 1)


Expand Down Expand Up @@ -119,7 +119,9 @@ def main(scenario, dt: datetime, domain: str):
fn = get_fn(dt)
if os.path.isfile(fn):
filets = os.stat(fn)[stat.ST_MTIME]
LOG.warning("%s was last processed on %s", dt, time.ctime(filets))
LOG.warning(
"%s[%s] was last processed on %s", dt, domain, time.ctime(filets)
)
jobs = []
# This is more convoluted than it should be, but our IEMRE grid is not
# exactly even. This also needs to assume that the IEMRE corner is an int
Expand Down

0 comments on commit 6fc98b5

Please sign in to comment.