From 044c4cfc39cae99b53814e7f31a2c6caba58babc Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 16 Sep 2024 18:20:09 +0200 Subject: [PATCH] .. --- python/parpe/hdf5_pe_input.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/parpe/hdf5_pe_input.py b/python/parpe/hdf5_pe_input.py index 38412cb6..f8ada23c 100644 --- a/python/parpe/hdf5_pe_input.py +++ b/python/parpe/hdf5_pe_input.py @@ -121,8 +121,7 @@ def _check_support(self): ptc.INITIALIZATION_PRIOR_TYPE, ptc.INITIALIZATION_PRIOR_PARAMETERS, ptc.OBJECTIVE_PRIOR_TYPE, ptc.OBJECTIVE_PRIOR_PARAMETERS ]: - col = parameter_df.get(col_id) - if any(col.notna()): + if (col := parameter_df.get(col_id)) and any(col.notna()): raise NotImplementedError("Priors are not supported yet.") def generate_file(self, hdf5_file_name: str) -> None: