Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Oct 25, 2022
1 parent 070e925 commit df9d4f2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions hdxms_datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,18 +243,3 @@ def load_dataset(self, data_id: str) -> HDXDataSet:
metadata = yaml.safe_load((self.cache_dir / data_id / "metadata.yaml").read_text())
return HDXDataSet(
parser=parser, data_id=data_id, metadata=metadata)


def load_dataset(pth):
state_dict = yaml.safe_load((pth / "hdx_spec.yaml").read_text())

data_files_dict = state_dict["data_files"]
data_files = {}
for file_name, spec in data_files_dict.items():
file_pth = pth / spec["filename"]
fmt = spec["format"]
if fmt.lower() == "dynamx":
df = read_dynamx(file_pth) # lazy?
data_files[file_name] = df
elif fmt.lower == "pdb":
data_files[file_name] = file_pth.read_text()

0 comments on commit df9d4f2

Please sign in to comment.