context.py¶
clew/propose/context.py
Everything a detector is allowed to look at, assembled once.
can_measure
bool clew.propose.context.Context.can_measure(self)
Whether this run can measure a candidate against a real index.
Source · 3 lines
def can_measure(self) -> bool:
"""@brief Whether the dry-run gate is available on this run."""
return self.dry_run and self.db_path is not None and self.db_path.is_file()1 more lines, not shown