Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion intertidal/composites.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,8 @@ def tidal_composites_cli(

except Exception as e:
log.exception(f"{run_id}: Failed to run process with error {e}")
sys.exit(1)
raise
# sys.exit(1)
else:
log.info(f"{run_id}: Skipping as overwrite==False")

Expand Down
9 changes: 7 additions & 2 deletions intertidal/elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,10 +1402,15 @@ def intertidal_cli(
client.close()
log.info(f"{run_id}: Completed DEA Intertidal workflow")

# except Exception as e:
# log.exception(f"{run_id}: Failed to run process with error {e}")
# sys.exit(1)
except Exception as e:
import traceback
traceback.print_exc()
log.exception(f"{run_id}: Failed to run process with error {e}")
sys.exit(1)

raise
# sys.exit(1)

if __name__ == "__main__":
intertidal_cli()
6 changes: 4 additions & 2 deletions intertidal/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,8 @@ def export_dataset_metadata(
dataset_assembler.names.dataset_path
/ dataset_assembler.names.thumbnail_filename()
)



# Complete the dataset
dataset_id, metadata_path = dataset_assembler.done()
Expand All @@ -1333,7 +1335,7 @@ def export_dataset_metadata(

# Generate final destination path
destination_path = f"{output_location.rstrip('/')}/{dataset_assembler.names.dataset_folder}/"

# Export tide graph figure if provided
if tide_graph_fig is not None:
tide_graph_path = thumbnail_path.parent / thumbnail_path.name.replace(
Expand All @@ -1343,7 +1345,7 @@ def export_dataset_metadata(
dataset_assembler.note_accessory_file(
"metadata:tide_graph", tide_graph_path
)

# Export STAC metadata using destination path to correctly
# populate required metadata/dataset links. This step
# also ensures all previous data was written out correctly.
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10,<4.0"
requires-python = ">=3.12,<4.0"
dependencies = [
"Bottleneck>=1.4.2",
"click>=8.1.7",
Expand All @@ -51,7 +51,7 @@ dependencies = [
"pandas>=2.2.3",
"pyogrio>=0.10.0",
"pytz>=2024.1",
"rasterio>=1.4.1,<1.4.4",
"rasterio>=1.5.0",
"s3fs>=2024.9.0",
"seaborn>=0.13.2",
"scikit-image>=0.24.0",
Expand All @@ -74,7 +74,7 @@ dea-mosaic-metadata = "intertidal.metadata_generator:cli"

[project.optional-dependencies]
datacube = [
"datacube[s3,performance,postgres]>=1.9.10",
"datacube[s3,performance,postgres]>=1.9.17",
"eodatasets3>=0.30.9",
"odc-ui>=0.2.1",
]
Expand Down
1 change: 1 addition & 0 deletions tests/test_intertidal.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def test_intertidal_cli():
"--tide_model",
"FES2014",
],
catch_exceptions=False,
)
assert result.exit_code == 0

Expand Down
1 change: 1 addition & 0 deletions tests/test_tidal_composites.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def test_tidal_composites_cli():
"--tide_model",
"FES2014",
],
catch_exceptions=False,
)
assert result.exit_code == 0

Expand Down
2,396 changes: 288 additions & 2,108 deletions uv.lock

Large diffs are not rendered by default.

Loading