Skip to content

Commit 7bfe8f7

Browse files
committed
linters
1 parent 7757287 commit 7bfe8f7

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/aind_data_schema/core/mri_session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ def validate_other(cls, value: Optional[str], info: ValidationInfo) -> Optional[
7777
" Describe the scan_sequence_type in the notes field."
7878
)
7979
return value
80-
80+
8181
@model_validator(mode="after")
8282
def validate_primary_scan(self):
83+
"""Validate that primary scan has vc_orientation and vc_position fields"""
84+
8385
if self.primary_scan:
8486
if not self.vc_orientation or not self.vc_position:
85-
raise ValueError(
86-
"Primary scan must have vc_orientation and vc_position"
87-
)
87+
raise ValueError("Primary scan must have vc_orientation and vc_position")
8888

8989

9090
class MriSession(AindCoreModel):

src/aind_data_schema/utils/schema_version_bump.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ def run_job(self):
163163

164164

165165
if __name__ == "__main__":
166-
167166
# TODO: Pass in the commit message as an argument
168167
schema_version_handler = SchemaVersionHandler()
169168
schema_version_handler.run_job()

tests/test_imaging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@ def test_validators(self):
318318
)
319319
self.assertEqual(expected_exception, repr(e.exception))
320320

321-
322321
with self.assertRaises(ValueError) as e:
323322
ms.MRIScan(
324323
scan_index=1,

0 commit comments

Comments
 (0)