Skip to content

Commit

Permalink
Added to_number function to misc_utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Aug 7, 2024
1 parent f4034a1 commit 1fc4467
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dcicutils/structured_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ def _load_reader(self, reader: RowReader, type_name: str) -> None:
structured_row = structured_row_template.create_row()
for column_name, value in row.items():
if self._validator_hook:
value, validator_error = self._validator_hook(self, reader.sheet_name, column_name, value)
value, validator_error = (
self._validator_hook(self, type_name, column_name, reader.row_number, value))
if validator_error:
self._note_error({
"src": create_dict(type=schema_name, row=reader.row_number),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dcicutils"
version = "8.13.3.1b19" # TODO: To become 8.14.0
version = "8.13.3.1b20" # TODO: To become 8.14.0
description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources"
authors = ["4DN-DCIC Team <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1fc4467

Please sign in to comment.