diff --git a/workflows/archive/TTU_2019_rcp45_time_slices_create_collection_from_zarr.ipynb b/workflows/archive/TTU_2019_rcp45_time_slices_create_collection_from_zarr.ipynb index cc8a0a00fac1afff008a705127afdf1839695ee8..ab7ccc577a5b983683714062078c5575c9ef7e64 100644 --- a/workflows/archive/TTU_2019_rcp45_time_slices_create_collection_from_zarr.ipynb +++ b/workflows/archive/TTU_2019_rcp45_time_slices_create_collection_from_zarr.ipynb @@ -742,18 +742,7 @@ "source": [ "# # helper to find items of wrong type\n", "# d = collection.to_dict()\n", - "# def find_paths(nested_dict, prepath=()):\n", - "# for k, v in nested_dict.items():\n", - "# try:\n", - "# path = prepath + (k,)\n", - "# if type(v) is np.float64: # found value\n", - "# yield path\n", - "# elif hasattr(v, 'items'): # v is a dict\n", - "# yield from find_paths(v, path) \n", - "# except:\n", - "# print(prepath)\n", - "\n", - "# print(*find_paths(d))" + "# print(*stac_helpers.find_paths(d))" ] }, {