-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
upload_to_figshare.py
and replace local data-loading with cache…
…d Figshare downloads (#13) * use load_train_test() to load wbm-summary in data.py (closes #10) * fetch_process_wbm_dataset.py wrap urllib.request.urlretrieve in try/except (closes #12) * add scripts/upload_to_figshare.py for publishing data files to figshare * add data/figshare dir with readme and FIGSHARE in __init__.py * change load_train_test() to load files from figshare instead of GitHub (closes #11) * class Files issue warning when accessing a file path that doesn't exist * docs recommend --depth 1 for git clone * fix tests/test_data.py * add auto-generated data/figshare/1.0.0.json * pyproject.toml drop unused [tool.setuptools.package-data] matbench_discovery = ["data/mp/*.json"] * fix AttributeError: 'DataFrame' object has no attribute 'material_id'
- Loading branch information
Showing
15 changed files
with
303 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"mp_computed_structure_entries": "https://figshare.com/ndownloader/files/40344436", | ||
"mp_elemental_ref_entries": "https://figshare.com/ndownloader/files/40344445", | ||
"mp_energies": "https://figshare.com/ndownloader/files/40344448", | ||
"mp_patched_phase_diagram": "https://figshare.com/ndownloader/files/40344451", | ||
"wbm_computed_structure_entries": "https://figshare.com/ndownloader/files/40344463", | ||
"wbm_initial_structures": "https://figshare.com/ndownloader/files/40344466", | ||
"wbm_cses_plus_init_structs": "https://figshare.com/ndownloader/files/40344469", | ||
"wbm_summary": "https://figshare.com/ndownloader/files/40344475" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Figshare File URLs | ||
|
||
Files in this directory are auto-generated by `scripts/upload_to_figshare.py`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.