We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b214d29 + c3a169e commit 96b9734Copy full SHA for 96b9734
swift-pipeline
@@ -178,9 +178,11 @@ if __name__ == "__main__":
178
else:
179
# First, check if the snapshots are all at the same redshift
180
redshifts = {data.metadata.redshift for data in snapshots}
181
- if len(redshifts) == len(snapshots):
182
- # All different redshifts!
+ # If the size of the set is one, then all redshifts are the same
+ if len(redshifts) == 1:
183
+ # All redshifts are the same! No need to modify runs' names
184
run_names = [data.metadata.run_name for data in snapshots]
185
+ # If the size of the set > 1, then at least two runs have different redshifts
186
187
# Need to append appropriate redshifts to names.
188
run_names = [
0 commit comments