23 id =
"3947b6cecc6113e0c3376095e88ce691fb9e120d"
24 date =
"2023-12-7 10:52:36 +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: 3947b6cecc6113e0c3376095e88ce691fb9e120d
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 ==
"3947b6cecc6113e0c3376095e88ce691fb9e120d":
59 msg =
"Program id (3947b6cecc6113e0c3376095e88ce691fb9e120d) 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.