Skip to content

Commit

Permalink
wip: troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage committed Feb 12, 2025
1 parent 8e71100 commit 836cf77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def format_rfc_3339_nz_midnight_datetime_string(datetime_object: datetime) -> st
try:
nz_datetime = parser.parse(naive_midnight_datetime_string).replace(tzinfo=nz_tz)
except parser.ParserError as err:
raise Exception(f"Not a valid date: {err}") from err
raise Exception(f"Not a valid date FIXME: {err}") from err

utc_tz = tz.gettz("UTC")
datetime_utc = nz_datetime.astimezone(utc_tz)
Expand Down
4 changes: 1 addition & 3 deletions scripts/standardise_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,11 @@ def parse_args() -> argparse.Namespace:
"--start-datetime",
dest="start_datetime",
help="Start datetime in format YYYY-MM-DD. Only optional if includeDerived.",
# type=valid_date,
)
parser.add_argument(
"--end-datetime",
dest="end_datetime",
help="End datetime in format YYYY-MM-DD. Only optional if includeDerived.",
# type=valid_date,
)
parser.add_argument("--target", dest="target", help="Target output", required=True)
parser.add_argument(
Expand Down Expand Up @@ -126,7 +124,7 @@ def report_non_visual_qa_errors(file: FileTiff) -> None:

def main() -> None:
arguments = parse_args()
print(arguments)
print(arguments.start_datetime, arguments.end_datetime)

standardising_config = StandardisingConfig(
gdal_preset=arguments.preset,
Expand Down

0 comments on commit 836cf77

Please sign in to comment.