Skip to main content

A PyTorch Dataset for the FITS file format

Project description

FITSDataset

This package contains a custom PyTorch Dataset for quick and easy training on FITS files, commonly used in astronomical data analysis. In particular, the FITSDataset class caches FITS files as PyTorch tensors for the purpose of increasing training speed.

Contributions and feedback are welcome; please open a pull request or an issue.

Quickstart

Using Python 3.6+, install from source with

pip install fitsdataset

Create a toy dataset with samples from the Hyper Suprime-Cam survey with:

>>> from fitsdataset import FITSDataset
>>> dataset = FITSDataset("path/to/examples/hsc/", size=101, label_col="target")

Notice that the cached tensors appear in path/to/examples/hsc/tensors.

Documentation

>>> from fitsdataset import FITSDataset
>>> help(FITSDataset)

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

fitsdataset-0.0.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

fitsdataset-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file fitsdataset-0.0.2.tar.gz.

File metadata

  • Download URL: fitsdataset-0.0.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for fitsdataset-0.0.2.tar.gz
Algorithm Hash digest
SHA256 12988a5457d28dcfef75f1ae06a19a155d83ab7244f719219b29801f73932863
MD5 a9a05bbc3c70f4acd43d61578a63eb20
BLAKE2b-256 5096d12422c4c5833f6ae1b1faa31251228c9149373e57fcc523cd15692ab499

See more details on using hashes here.

File details

Details for the file fitsdataset-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fitsdataset-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.1

File hashes

Hashes for fitsdataset-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc5f6374bc1d4eac2639c0073f6a4aeb18b583d0a67b51cf123d867790c91f29
MD5 f93f5d6b3b0dc826e84adbc48ab51ad0
BLAKE2b-256 0ce433d88ee4d2d15bf1cede199d00034169a2d7fe1cb98d87445b973cabb528

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