Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PY3] Fix unit test in Alignment/MillePedeAlignmentAlgorithm #28333

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions Alignment/CommonAlignment/scripts/tkal_create_file_lists.py
Expand Up @@ -496,7 +496,7 @@ def _print_eventcounts(self):
self._events_for_alignment/self._events_in_dataset),
log_file = log)
for iov in sorted(self._iov_info_alignment):
print_msg(("Approximate events" if self.rereco else "Events") + " for alignment in IOV since {0:d}: {1:d}"
print_msg(("Approximate events" if self.rereco else "Events") + " for alignment in IOV since {0:f}: {1:f}"
.format(iov, self._iov_info_alignment[iov]["events"]),
log_file = log)

Expand All @@ -507,15 +507,15 @@ def _print_eventcounts(self):
log_file = log)

for iov in sorted(self._iov_info_validation):
msg = ("Approximate events" if self.rereco else "Events") + " for validation in IOV since {0:d}: {1:d}".format(
msg = ("Approximate events" if self.rereco else "Events") + " for validation in IOV since {0:f}: {1:f}".format(
iov, self._iov_info_validation[iov]["events"])
if (self._iov_info_validation[iov]["events"]
< self._args.minimum_events_validation):
msg += " (not enough events -> no dataset file will be created)"
print_msg(msg, log_file = log)

for run in sorted(self._run_info):
msg = ("Approximate events" if self.rereco else "Events") + " for validation in run {0:d}: {1:d}".format(
msg = ("Approximate events" if self.rereco else "Events") + " for validation in run {0:f}: {1:f}".format(
run, self._run_info[run]["events"])
if (self._run_info[run]["events"]
< self._args.minimum_events_validation):
Expand Down