Skip to main content

Download datasets from the RE-MAT Clowder

Project description

RE-MAT Data

Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

GitHub Discussion

This package provides a simple interface to download and upload datasets used in the ReMat project.

Installation

This is a python package and can be installed using pip:

pip install remat-data-downloader

Authentication

You need to obtain a Clowder API key to use this package. You can obtain this key by logging into the RE-MAT Clowder instance and going to your user settings page (grey silhouette in the upper right corner of the page). Click on the API Keys tab and create a new key. Save this key in a file nameed clowder_key.txt in the directory where you will be running the remat-download-data command.

Usage

The remat-data command can be run from your command line. It has commands to interact with Clowder spaces and with datasets.

List Spaces

remat-data spaces list

                      Clowder Spaces
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Name               ID                        datasets ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Front velocities   6674972be4b0a2d1b9ba0228  303      │
│ DSC Post Cures     6669d4d0e4b0a2d1b9b9a797  228      │
│ DSC Cure Kinetics  64343b6be4b01a23c58bad90  307      │
└───────────────────┴──────────────────────────┴──────────┘

Download Datasets

Now that you know the unique ID for the space you want to download, you can download the datasets using the download command. This command will create subdirectories for each dataset and download the metadata as a json file and the DSC Curve as a csv file.

You can re-run this command, and it will skip downloads of datasets that already exist in the directory.

remat-data spaces download 6669d4d0e4b0a2d1b9b9a797

Upload Files to Space

Using the upload command, you can upload files to a space. The command takes the space name as a flag, optional --name flag for the dataset name and a list of file name to upload. If dataset name is not mentioned, A default dataset is created and the files are uploaded under the newly created dataset

Valid values of spaces are: --Cure, --PostCure, --FrontVelocity │

For help run

remat-data spaces upload --help

Command to upload:

 remat-data spaces upload --Cure --name TEST-dataset-2 test3.csv DSC_Curve.csv

Configuration

Application configuration and space name to UUID mapping is stored in config.py Add new spaces to this config.py file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

remat_data-1.1.3a1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

remat_data-1.1.3a1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file remat_data-1.1.3a1.tar.gz.

File metadata

  • Download URL: remat_data-1.1.3a1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for remat_data-1.1.3a1.tar.gz
Algorithm Hash digest
SHA256 07439c016cbdbe22d2e3c242fc8ee55c79f3c551c399a526ec5a6d8788a3d2eb
MD5 89e8092c6a07e050679c851ccc1164d2
BLAKE2b-256 cd6161273e6dde09f33c02875f219a8984a66a724dd1ef1b97012b3c74f79f2f

See more details on using hashes here.

Provenance

The following attestation bundles were made for remat_data-1.1.3a1.tar.gz:

Publisher: cd.yml on re-mat/remat-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file remat_data-1.1.3a1-py3-none-any.whl.

File metadata

  • Download URL: remat_data-1.1.3a1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for remat_data-1.1.3a1-py3-none-any.whl
Algorithm Hash digest
SHA256 74e46f0151ecc5e2dc6d4910d6961e3184cdabcb225e34fe3d9d88dfeb922b6d
MD5 4a8f63ebe8666efec54b3a5a62cede14
BLAKE2b-256 06583d6d5af5dc67f2d9edc4c962ad1458843e958672c614100ea0b658a1c620

See more details on using hashes here.

Provenance

The following attestation bundles were made for remat_data-1.1.3a1-py3-none-any.whl:

Publisher: cd.yml on re-mat/remat-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page