Skip to content

Commit

Permalink
update metadata Handling (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis authored May 28, 2024
1 parent 68d91db commit b5af081
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/dive_server/crud_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def run_training(
def _get_data_by_type(
file: types.GirderModel,
image_map: Optional[Dict[str, int]] = None,
) -> Optional[Tuple[GetDataReturnType, Optional[List[str]]]]:
) -> Tuple[Optional[GetDataReturnType], Optional[List[str]]]:
"""
Given an arbitrary Girder file model, figure out what kind of file it is and
parse it appropriately.
Expand Down
4 changes: 3 additions & 1 deletion server/dive_utils/serializers/viame.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ def row_info(row: List[str]) -> Tuple[int, str, int, List[int], float]:
def _deduceType(value: Any) -> Union[bool, float, str, None]:
if isinstance(value, dict) or isinstance(value, list):
return None

if value is None:
return None

if value == "true":
return True
if value == "false":
Expand Down

0 comments on commit b5af081

Please sign in to comment.