Skip to content

Commit 9b4f052

Browse files
committed
Cleaning up
1 parent 1edecd5 commit 9b4f052

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

pyclowder/connectors.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,6 @@ def _download_file_metadata(self, host, secret_key, fileid, filepath):
309309
(fd, md_file) = tempfile.mkstemp(suffix=md_name, dir=md_dir)
310310

311311
with os.fdopen(fd, "wb") as tmp_file:
312-
print("Writing metadata to %s" % md_file)
313-
print(file_md)
314312
tmp_file.write(json.dumps(file_md))
315313

316314
return (md_dir, md_file)
@@ -328,23 +326,6 @@ def _prepare_dataset(self, host, secret_key, resource):
328326
temp_link_dir = tempfile.mkdtemp()
329327
tmp_dirs_created.append(temp_link_dir)
330328

331-
# Check if miniomounted path is set and if the file is in the minio mounted path
332-
# if self.minio_mounted_path:
333-
# for file in resource['files']:
334-
# file_path = self._check_for_local_file(file, file['id'])
335-
# if not file_path:
336-
# missing_files.append(file)
337-
# else:
338-
# md_file_path = file['name'].split('.')[0] + "_metadata.json"
339-
# (file_md_dir, file_md_tmp) = self._download_file_metadata(host, secret_key, file['id'], md_file_path)
340-
# located_files.append(file_path)
341-
# located_files.append(file_md_tmp)
342-
# tmp_files_created.append(file_md_tmp)
343-
# tmp_dirs_created.append(file_md_dir)
344-
345-
# else:
346-
347-
#check if any files in dataset accessible locally
348329
ds_file_list = pyclowder.datasets.get_file_list(self, host, secret_key, resource["id"])
349330
for ds_file in ds_file_list:
350331
file_path = self._check_for_local_file(ds_file)
@@ -404,7 +385,6 @@ def _prepare_dataset(self, host, secret_key, resource):
404385
except Exception as e:
405386
logger.exception("No files found and download failed")
406387

407-
print("File paths: %s" % file_paths)
408388
return (file_paths, tmp_files_created, tmp_dirs_created)
409389

410390
# pylint: disable=too-many-branches,too-many-statements

0 commit comments

Comments
 (0)