@@ -575,6 +575,7 @@ def read_external_dataset_array(
575575def get_path_in_external (obj ) -> List [Any ]:
576576 """
577577 See :func:`get_path_in_external_with_path`. Only the value is returned, not the dot path into the object
578+
578579 :param obj:
579580 :return:
580581 """
@@ -596,14 +597,14 @@ def get_proxy_uri_for_path_in_external(obj: Any, dataspace_name_or_uri: Union[st
596597 """
597598 Search all PathInHdfFile or PathInExternalFile in the object and return a map of uri to list of path found
598599 in the object for this uri.
600+
599601 :param obj:
600602 :param dataspace_name_or_uri: the dataspace name or uri to search
601603 :return: { uri : [ path_in_external1, path_in_external2, ... ], ... }
602604 """
603605 if dataspace_name_or_uri is not None and isinstance (dataspace_name_or_uri , str ):
604606 dataspace_name_or_uri = dataspace_name_or_uri .strip ()
605607 ds_name = dataspace_name_or_uri
606- ds_uri = dataspace_name_or_uri
607608 if isinstance (dataspace_name_or_uri , str ):
608609 if dataspace_name_or_uri is not None :
609610 if not dataspace_name_or_uri .startswith ("eml:///" ):
@@ -614,13 +615,12 @@ def get_proxy_uri_for_path_in_external(obj: Any, dataspace_name_or_uri: Union[st
614615 assert ds_uri is not None , f"Cannot parse dataspace uri { dataspace_name_or_uri } "
615616 ds_name = ds_uri .dataspace
616617 elif isinstance (dataspace_name_or_uri , Uri ):
617- ds_uri = dataspace_name_or_uri
618618 ds_name = dataspace_name_or_uri .dataspace
619619
620620 uri_path_map = {}
621621 _piefs = get_path_in_external_with_path (obj )
622622 if _piefs is not None and len (_piefs ) > 0 :
623- logging .info (f"Found { _piefs } datasets in object { get_obj_uuid (obj )} " )
623+ # logging.info(f"Found {_piefs} datasets in object {get_obj_uuid(obj)}")
624624
625625 # uri_path_map[uri] = _piefs
626626 for item in _piefs :
@@ -631,7 +631,7 @@ def get_proxy_uri_for_path_in_external(obj: Any, dataspace_name_or_uri: Union[st
631631 )
632632 # Then unpack
633633 path , pief = item
634- logging .info (f"\t test : { path_last_attribute (path )} " )
634+ # logging.info(f"\t test : {path_last_attribute(path)}")
635635 if "hdf" in path_last_attribute (path ).lower ():
636636 dor = get_object_attribute (
637637 obj = obj , attr_dot_path = path [: - len (path_last_attribute (path ))] + "hdf_proxy"
0 commit comments