Skip to main content

A collection of tools to help with creating SPARC datasets.

Project description

SPARC Dataset Creation

A package to help with creating SPARC datasets. Currently, support is available to create scaffold based SPARC datasets.

Install

SPARC dataset tools can be installed from PyPi.org with the following command:

pip install sparc-dataset-tools

Usage

How to use (can also be found using create-scaffold-dataset -h):

usage: create-scaffold-dataset [-h] dataset_dir mesh_config_file argon_document

Create a Scaffold based SPARC dataset from a scaffold description file and an Argon document.

positional arguments:

dataset_dir

root directory for new dataset.

mesh_config_file

mesh config json file to generate scaffold.

argon_document

argon document file to generate webGL files.

optional arguments:

-h, –help

show this help message and exit

Run

To run the application create a virtual environment.

python -m venv venv_sparc

Activate the virtual environment:

source venv_sparc/bin/activate

For bash shells, or:

venv_sparc\Scripts\activate

For a windows cmd prompt.

With the activated virtual environment install the package.

pip install sparc-dataset-tools

Then execute the application to print out the usage information to test the script.

create-scaffold-dataset -h

Examples:

create-scaffold-dataset <dataset_dir> <mesh_config_file> <argon_document>

License

Copyright 2022 University of Auckland

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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

sparc-dataset-tools-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file sparc-dataset-tools-0.1.1.tar.gz.

File metadata

  • Download URL: sparc-dataset-tools-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.7

File hashes

Hashes for sparc-dataset-tools-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22445092079a7bcc710f4945e8ad3ebbc0506efdb82fb3e912282a6b2a7b5e91
MD5 c108b4132cb7499c0c313b717eb1fa5b
BLAKE2b-256 5d873b0917d580815951c36d17819e2b3f38f389c2f5fd63e5aabfb856099119

See more details on using hashes here.

Supported by

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