Skip to main content

Generates dummy medical image data with realistic headers to be used in image handling tests

Project description

https://github.com/australian-imaging-service/medimages4tests/actions/workflows/test.yml/badge.svg https://codecov.io/gh/australian-imaging-service/medimages4tests/branch/main/graph/badge.svg?token=UIS0OGPST7

Generates dummy medical images, with junk image data but realistic headers, to test imaging handling pipelines

Installation

Medimage4tests is available on PyPI so to install, simply use pip

$ pip3 install medimages4tests

or include in your package’s test_requires.

Usage

# Import medimages4tests generator functions
from medimages4tests.dicom.mri.fmap.ge.discovery_mr888.dv26_0_r05_2008a import sample_image

# Return generated images in pytest fixtures (or alternative test framework)
@pytest.fixture()
def ge_dicom_fmap():
    return sample_image()

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

medimages4tests-v0.2.tar.gz (702.4 kB view details)

Uploaded Source

Built Distribution

medimages4tests-0.2-py3-none-any.whl (4.4 MB view details)

Uploaded Python 3

File details

Details for the file medimages4tests-v0.2.tar.gz.

File metadata

  • Download URL: medimages4tests-v0.2.tar.gz
  • Upload date:
  • Size: 702.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for medimages4tests-v0.2.tar.gz
Algorithm Hash digest
SHA256 c32fed8c0551d935745526757d720c9be17ab9fcf0ee85e738616ab715dcb408
MD5 0e97bab8d87d002c6b8ba3157ce8a35c
BLAKE2b-256 20b8f90d4e929a59d9ca0c41648fc63edd830404f5a65d8df913425ac23111ef

See more details on using hashes here.

Provenance

File details

Details for the file medimages4tests-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for medimages4tests-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 875d8142d704769c9e85a85979992cd88ffa8a8eccee27fd6b59bc780a95c476
MD5 68b79498ed8138b76930bbf5a572584a
BLAKE2b-256 66c1aba35541f806651ee1d0e1322c1b48b726e0a317ada042608fb4a2fe40f8

See more details on using hashes here.

Provenance

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