23 id =
"08ee4f4f5d6ace72fd9dc473ad54b3c6cbd08dc5"
24 date =
"2024-04-22 06:18:47 +0000"
29 author =
"Karl Wette <karl.wette@ligo.org>"
30 builder =
"Unknown User <>"
31 committer =
"Karl Wette <karl.wette@ligo.org>"
32 status =
"CLEAN: All modifications committed"
34 verbose_msg =
"""Branch: None
36 Id: 08ee4f4f5d6ace72fd9dc473ad54b3c6cbd08dc5
38 Builder: Unknown User <>
39 Repository 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 ==
"08ee4f4f5d6ace72fd9dc473ad54b3c6cbd08dc5":
59 msg =
"Program id (08ee4f4f5d6ace72fd9dc473ad54b3c6cbd08dc5) 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.