23id =
"5e288d307a57761220ddec659d57ae1ab1f4a1d3"
24date =
"2025-06-17 11:54:06 +0000"
29author =
"Geraint Pratten <geraint.pratten@ligo.org>"
30builder =
"Unknown User <>"
31committer =
"Geraint Pratten <geraint.pratten@ligo.org>"
32status =
"CLEAN: All modifications committed"
34verbose_msg =
"""Branch: None
36Id: 5e288d307a57761220ddec659d57ae1ab1f4a1d3
38Builder: Unknown User <>
39Repository status: CLEAN: All modifications committed"""
48 If foreign_id != id, perform an action specified by the onmismatch
49 kwarg. This can be useful for validating input files.
52 "raise":
raise a VersionMismatchError, stating both versions involved
53 "warn": emit a warning, stating both versions involved
55 if onmismatch
not in (
"raise",
"warn"):
56 raise ValueError(onmismatch +
" is an unrecognized value of onmismatch")
57 if foreign_id ==
"5e288d307a57761220ddec659d57ae1ab1f4a1d3":
59 msg =
"Program id (5e288d307a57761220ddec659d57ae1ab1f4a1d3) does not match given id (%s)." % foreign_id
60 if onmismatch ==
"raise":
64 warnings.warn(msg, UserWarning)
def check_match(foreign_id, onmismatch="raise")
If foreign_id != id, perform an action specified by the onmismatch kwarg.