Skip to content

Commit

Permalink
added notice for wrongly defined profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel42 committed Mar 12, 2024
1 parent b4f79fc commit ae1ed78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions emiproc/exports/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ def export_inventory_profiles(
logger = logging.getLogger("emiproc.export_inventory_profiles")
output_dir = Path(output_dir)

if "type" in inv.v_profiles_indexes.coords:
raise NotImplementedError(
"Can only export only profiles varying on 'category' and 'substance' . \n"
"If you want to export inventory profiles, "
"please use another function or remap your inventory."
)

# Add the vertical profiles
if inv.v_profiles:
profiles = {
Expand Down

0 comments on commit ae1ed78

Please sign in to comment.