Skip to content

Commit

Permalink
Add more specific condition for accessing canonical-reefs habitable area
Browse files Browse the repository at this point in the history
  • Loading branch information
BG-AIMS committed Jan 8, 2025
1 parent 16c251a commit 986cfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExtInterface/ADRIA/Domain.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function Domain(
location_data = location_data[
coalesce.(in.(conn_ids, [connectivity.loc_ids]), false), (:)
]
if "k" names(location_data)
if ("k" names(location_data)) & ("ReefMod_habitable_proportion" names(location_data))
# k column not found in gbr-wide canonical-reefs gpkg.
# Defaulting to ReefMod_habitable_proportion (in proportion 0-1 scale).
rename!(location_data, :ReefMod_habitable_proportion => :k)
Expand Down

0 comments on commit 986cfe6

Please sign in to comment.