Skip to content

Commit 8daa9f7

Browse files
authored
Update registration.py
1 parent 3112fdb commit 8daa9f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

velociraptor/catalogue/registration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def registration_ids(
165165
Registers all quantities related to particle ids and halo ids (those beginning or ending with ID).
166166
"""
167167

168-
if not field_path[:2] == "ID" or field_path[-2:] == "ID":
168+
if not (field_path[:2] == "ID" or field_path[-2:] == "ID"):
169169
raise RegistrationDoesNotMatchError
170170

171171
# As identifiers, all of these quantities are dimensionless

0 commit comments

Comments
 (0)