We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64c72c1 + 58f6052 commit f814377Copy full SHA for f814377
1 file changed
reinvent/runmodes/RL/run_staged_learning.py
@@ -45,7 +45,7 @@ def setup_diversity_filter(config: SectionDiversityFilter, rdkit_smiles_flags: d
45
46
memory_type = config.type
47
48
- if "type" in config:
+ if hasattr(config, "type"):
49
diversity_filter = getattr(memories, memory_type)
50
else:
51
return None
0 commit comments