Skip to content

Commit

Permalink
added test file that git didn't want to add.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisiacovella committed Nov 14, 2024
1 parent 4253ee5 commit e624577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modelforge/curation/tmqm_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ def _process_downloaded(
for name in snapshots_temp_dict.keys():
data_temp.append(snapshots_temp_dict[name])

print(max_records, total_conformers)
n_max = len(data_temp)
if max_records is not None:
n_max = max_records
Expand Down Expand Up @@ -528,18 +527,20 @@ def process(
)
from modelforge.utils.misc import list_files, ungzip_file

# list the files in the directory to examine
files = list_files(
# list the files in the directory that are gzipped
gzip_files = list_files(
directory=f"{self.local_cache_dir}/tmqm_files/{self.extracted_filepath}",
extension=".gz",
)
for file in files:
# ungzip the files
for file in gzip_files:
ungzip_file(
input_path_dir=f"{self.local_cache_dir}/tmqm_files/{self.extracted_filepath}",
file_name=file,
output_path_dir=f"{self.local_cache_dir}/tmqm_files/{self.extracted_filepath}",
)

# list the files in the directory by type
xyz_files = list_files(
directory=f"{self.local_cache_dir}/tmqm_files/{self.extracted_filepath}",
extension=".xyz",
Expand Down
Binary file added modelforge/tests/data/test_file.txt.gz
Binary file not shown.

0 comments on commit e624577

Please sign in to comment.