From 7204afd9b21f73e591646e6cb9c364537ad46c8b Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 16 Sep 2024 18:32:57 +0200 Subject: [PATCH] .. --- python/parpe/hdf5_pe_input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/parpe/hdf5_pe_input.py b/python/parpe/hdf5_pe_input.py index 99fba331..7e5f35a9 100644 --- a/python/parpe/hdf5_pe_input.py +++ b/python/parpe/hdf5_pe_input.py @@ -121,7 +121,7 @@ def _check_support(self): ptc.INITIALIZATION_PRIOR_TYPE, ptc.INITIALIZATION_PRIOR_PARAMETERS, ptc.OBJECTIVE_PRIOR_TYPE, ptc.OBJECTIVE_PRIOR_PARAMETERS ]: - if (col := parameter_df.get(col_id)) and col.notna().any(): + if (col := parameter_df.get(col_id)) is not None and col.notna().any(): raise NotImplementedError("Priors are not supported yet.") def generate_file(self, hdf5_file_name: str) -> None: