hfp.anytask(lib.getvaluesfromcoords, v2, reciprocal=False, keys='disttransfm', tkeys='{}.{}.{}'.format('result_false', k, k2)) # for k, v in hfp['true'].iteritems(): # print k # for k2, v2 in v.iteritems(): # print k2 # hfp.anytask(lib.getvaluesfromcoords, v2, # reciprocal=False, # keys='disttransf', # tkeys='{}.{}.{}'.format('result_true', k, k2)) hfp.pop('disttransf') hfp.pop('disttransfm') hfp.pop('result_false') # hfp.pop('result_true') hfp.pop('true') hfp.pop('false') hfp.logging('hfp datastructure:\n---\n{}---', hfp.datastructure2string(maxdepth=2)) print hfp['result.6720_13067.8'] y = [] for k, v in hfp.iteritems(): if v:
# for i, k, ks, vs in hfp['paths_true'].simultaneous_iterator(): # pass if __name__ == "__main__": yamlfile = os.path.dirname(os.path.abspath(__file__)) + "/parameters.yml" yamlfile = os.path.dirname(os.path.abspath(__file__)) + "/parameters.yml" hfp = IPL(yaml=yamlfile, yamlspec={"path": "intermedfolder", "filename": "pathstruefile"}, castkey=None) # hfp.logging('datastructure:\n---\n{}', hfp.datastructure2string()) params = hfp.get_params() hfp["true", "border"] = IPL(data=hfp["largeobj", "border_locmax", "path"]) hfp["true", "locmax"] = IPL(data=hfp["largeobj", "locmax", "path"]) hfp.pop("largeobj") hfp.data_from_file(filepath=params["intermedfolder"] + params["pathsfalsefile"]) hfp["false", "border"] = IPL(data=hfp["largeobjm", "border_locmax_m", "path"]) hfp["false", "locmax"] = IPL(data=hfp["largeobjm", "locmaxm", "path"]) hfp.pop("largeobjm") hfp.pop("pathsim") hfp.pop("overlay") # # TODO: Insert code here # hfp = Hdf5ImageProcessingLib( # yaml=yamlfile, # yamlspec={'path': 'intermedfolder', 'filename': 'pathstruefile'}, # tkeys='true',
if __name__ == '__main__': yamlfile = os.path.dirname(os.path.abspath(__file__)) + '/parameters.yml' hfp = IPL( yaml=yamlfile, yamlspec={'path': 'intermedfolder', 'filename': 'pathstruefile'}, castkey=None ) # hfp.logging('datastructure:\n---\n{}', hfp.datastructure2string()) params = hfp.get_params() hfp['true', 'border'] = IPL(data=hfp['largeobj', 'border_locmax', 'path']) hfp['true', 'locmax'] = IPL(data=hfp['largeobj', 'locmax', 'path']) hfp.pop('largeobj') hfp.data_from_file(filepath=params['intermedfolder'] + params['pathsfalsefile']) hfp['false', 'border'] = IPL(data=hfp['largeobjm', 'border_locmax_m', 'path']) hfp['false', 'locmax'] = IPL(data=hfp['largeobjm', 'locmaxm', 'path']) hfp.pop('largeobjm') hfp.pop('pathsim') hfp.pop('overlay') # hfp.data_from_file( # filepath=params['intermedfolder'] + params['pathsfalsefile'], # tkeys='false', # castkey=None # )
yamlfile = os.path.dirname(os.path.abspath(__file__)) + '/parameters.yml' yamlfile = os.path.dirname(os.path.abspath(__file__)) + '/parameters.yml' hfp = IPL(yaml=yamlfile, yamlspec={ 'path': 'intermedfolder', 'filename': 'pathstruefile' }, castkey=None) # hfp.logging('datastructure:\n---\n{}', hfp.datastructure2string()) params = hfp.get_params() hfp['true', 'border'] = IPL(data=hfp['largeobj', 'border_locmax', 'path']) hfp['true', 'locmax'] = IPL(data=hfp['largeobj', 'locmax', 'path']) hfp.pop('largeobj') hfp.data_from_file(filepath=params['intermedfolder'] + params['pathsfalsefile']) hfp['false', 'border'] = IPL(data=hfp['largeobjm', 'border_locmax_m', 'path']) hfp['false', 'locmax'] = IPL(data=hfp['largeobjm', 'locmaxm', 'path']) hfp.pop('largeobjm') hfp.pop('pathsim') hfp.pop('overlay') # # TODO: Insert code here # hfp = Hdf5ImageProcessingLib( # yaml=yamlfile,