Skip to content

Commit 10dc419

Browse files
opxrd: Used patterndb_logger for init logging
1 parent 20a19a7 commit 10dc419

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

opxrd/wrapper/opxrd.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def load(cls, dirpath : str, download : bool = True, download_in_situ : bool = F
2121
if not os.path.isdir(dirpath) and download:
2222
cls._prepare_files(root_dirpath=dirpath, include_in_situ=download_in_situ)
2323

24-
2524
return super().load(dirpath=dirpath, strict=True)
2625

2726

@@ -65,8 +64,8 @@ def _download_zenodo_opxrd(cls, output_fpath : str, filename : str = 'opxrd.zip'
6564
if not file_response.status_code == 200:
6665
raise ValueError(f'Response returned error status code {file_response.status_code}. Reason: {file_response.reason}')
6766

68-
print(f'- Downloading opXRD database from Zenodo ({zenodo_url})')
69-
print(f'- Download chunk progress (Chunk size = 1kB):')
67+
patterdb_logger.info(f'Downloading opXRD database from Zenodo ({zenodo_url})')
68+
patterdb_logger.info(f'Download chunk progress (Chunk size = 1kB):')
7069
time.sleep(0.01)
7170
tracked_int = TrackedInt(start_value=0, finish_value=total_chunks)
7271
with open(output_fpath, 'wb') as f:

0 commit comments

Comments
 (0)