Skip to content

Commit 0f2b689

Browse files
Fix typos. remove pass statement
1 parent 7413e05 commit 0f2b689

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

ingest/cell_metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def validate_header_for_coordinate_values(self):
8484
if valid:
8585
return True
8686
else:
87-
msg = f'Header names can not be coordinate values x, y, or z (case insensitive)'
87+
msg = 'Header names can not be coordinate values x, y, or z (case insensitive)'
8888
self.store_validation_issue('error', 'format', msg)
8989
return False
9090

ingest/clusters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def validate_header_for_coordinate_values(self):
9696
for coordinate in ('x', 'y'):
9797
if coordinate not in lower_cased_headers:
9898
msg = (
99-
f"Header must have coordinate values 'x' and 'y' (case insensitive)"
99+
"Header must have coordinate values 'x' and 'y' (case insensitive)"
100100
)
101101
self.store_validation_issue('error', 'format', msg)
102102
return False

ingest/ingest_pipeline.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ def ingest_expression(self) -> int:
406406
def ingest_cell_metadata(self):
407407
"""Ingests cell metadata files into Firestore."""
408408
if self.cell_metadata.validate():
409-
pass
410409
self.info_logger.info(
411410
f'Cell metadata file format valid', extra=self.extra_log_params
412411
)

tests/data/metadata_example.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ CELL_00011 CLST_C CLST_C_1 0.638
1414
CELL_00012 CLST_C CLST_C_1 8.888
1515
CELL_00013 CLST_C CLST_C_1 -2.27
1616
CELL_00014 CLST_C CLST_C_2 -2.606
17-
CELL_00015 CLST_C CLST_C_2 -9.089z
17+
CELL_00015 CLST_C CLST_C_2 -9.089

tests/test_cell_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TestCellMetadata(unittest.TestCase):
99
def test_validate_header_for_coordinate_values_false(self):
1010
"""Ensures validate_header_for_coordinate_values returns false when
11-
coordintate value is in metadata file
11+
coordinate value is in metadata file
1212
"""
1313
cm = CellMetadata(
1414
'../tests/data/metadata_bad_contains_coordinates.txt',
@@ -21,7 +21,7 @@ def test_validate_header_for_coordinate_values_false(self):
2121

2222
def test_validate_header_for_coordinate_values_true(self):
2323
"""Ensures validate_header_for_coordinate_values returns true when
24-
coordintate value is not in metadata file
24+
coordinate value is not in metadata file
2525
"""
2626
cm = CellMetadata(
2727
'../tests/data/metadata_example.txt',

0 commit comments

Comments
 (0)