Skip to content

Commit

Permalink
Fix classification-voodoo processing
Browse files Browse the repository at this point in the history
  • Loading branch information
tukiains committed Dec 15, 2023
1 parent d4a4701 commit 9941912
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/data_processing/subcmds/process_cloudnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ def process_level2(self, uuid: Uuid, product: str) -> tuple[Uuid, str]:
raise MiscError(f"Missing required input file: {cat_file}")
self._check_source_status(product, meta_record)
module = importlib.import_module(f"cloudnetpy.products.{module_name}")
prod = product.replace("-", "_")
prod = (
"classification"
if product == "classification-voodoo"
else product.replace("-", "_")
)
fun = getattr(module, f"generate_{prod}")
uuid.product = fun(categorize_file, self.temp_file.name, uuid=uuid.volatile)
identifier = utils.get_product_identifier(product)
Expand Down

0 comments on commit 9941912

Please sign in to comment.