Skip to content

Commit

Permalink
Fix warning about invalid escape sequence '\{'
Browse files Browse the repository at this point in the history
process_helper.py:235: DeprecationWarning: invalid escape sequence '\{'
    f"{self.output_dir}\{self.output_prefix}{year:04}{month:02}{day:02}"
  • Loading branch information
carueda committed Aug 31, 2024
1 parent 6989355 commit a699c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pbp/process_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def process_day(self, date: str) -> Optional[ProcessDayResult]:
basename = f"{self.output_dir}/{self.output_prefix}{year:04}{month:02}{day:02}"
if os.name == "nt":
basename = (
f"{self.output_dir}\{self.output_prefix}{year:04}{month:02}{day:02}"
f"{self.output_dir}\\{self.output_prefix}{year:04}{month:02}{day:02}"
)

if self.gen_netcdf:
Expand Down

0 comments on commit a699c84

Please sign in to comment.