Skip to content

Commit ec443af

Browse files
committed
renamed datasets.yml to dataset.yml & removed figshare_latest.yml
1 parent 97460a7 commit ec443af

File tree

3 files changed

+7
-56
lines changed

3 files changed

+7
-56
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ datasets:
77
hcmi:
88
description: "Human Cancer Models Initiative (HCMI) encompasses numerous cancer types and includes cell line, organoid, and tumor data. Data includes the transcriptomics, somatic mutation, and copy number datasets."
99
mpnst:
10-
description: "Malignant Peripheral Nerve Sheath Tumor is a rare, agressive sarcoma that affects peripheral nerves throughout the body."
10+
description: "Malignant Peripheral Nerve Sheath Tumor is a rare, agressive sarcoma that affects peripheral nerves throughout the body."

coderdata/download/figshare_latest.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

coderdata/utils/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def list_datasets(raw: bool=False) -> dict | None:
4343
Returns a dict containing the information if ``raw==True``,
4444
otherwise prints information to stdout and returns `None`.
4545
"""
46-
with resources.open_text('coderdata', 'datasets.yml') as f:
47-
datasets = yaml.load(f, Loader=yaml.FullLoader)
46+
with resources.open_text('coderdata', 'dataset.yml') as f:
47+
data_information = yaml.load(f, Loader=yaml.FullLoader)
4848
if raw:
49-
return datasets
49+
return data_information['datasets']
5050
else:
51-
datasets = datasets['datasets']
52-
for dataset in datasets:
53-
print(f'{dataset}: "{datasets[dataset]['description']}"')
51+
datasets = data_information['datasets']
52+
for dataset in data_information:
53+
print(f'{dataset}: "{data_information[dataset]['description']}"')

0 commit comments

Comments
 (0)