23 id =
"d5ae9e88fe6c6a3da466e39aed10986ffa7748bb"
24 date =
"2023-02-1 14:05:47 +0000"
29 author =
"Adam Mercer <adam.mercer@ligo.org>"
30 builder =
"Unknown User <>"
31 committer =
"Adam Mercer <adam.mercer@ligo.org>"
32 status =
"CLEAN: All modifications committed"
34 verbose_msg =
"""Branch: None
36 Id: d5ae9e88fe6c6a3da466e39aed10986ffa7748bb
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 ==
"d5ae9e88fe6c6a3da466e39aed10986ffa7748bb":
59 msg =
"Program id (d5ae9e88fe6c6a3da466e39aed10986ffa7748bb) 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.