diff --git a/emiproc/exports/profiles.py b/emiproc/exports/profiles.py index 759816f..402ba3a 100644 --- a/emiproc/exports/profiles.py +++ b/emiproc/exports/profiles.py @@ -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 = {