Skip to main content

Import and Export data for Radiomics Workflows.

Project description

lenden

Exchange Workflow Data

  • 📙 lenden for exchange

This library allows to express in a Json format the output of the a Radiomics pipeline.

Installation

To install execute the command

pip install lenden

Use examples

An example pipeline with two outputs results.

from lenden.dataexport  import *

result1= DataResults(Description="Do exercitation occaecat Lorem dolore labore culpa quis.", 
                     Help="Aliquip commodo sunt adipisicing officia irure laborum reprehenderit nulla consectetur in minim.",
                     Type=ResultType.image, Path="/path/to/image", Size=ResultSizeType.normal, Format="%20f")

result2= DataResults(Description="Sit pariatur magna nisi do.", 
                     Help="Velit id adipisicing tempor Lorem. Tempor dolore proident ea quis.",
                     Type=ResultType.percent, Path="/path/to/fileresult", Size=ResultSizeType.wide, Format="RGB(2,3,4)")
# Result without Error
data = DataExport(Version=0.1, HasError=False,
                          DisplayType=DisplayType.grid, Results=[result1, result2],CleanPatterns=['*.tmp'], Logs=None)
print(data.getJSON())

Then the output is:

{
    "Version": 0.1,
    "HasError": false,
    "DisplayType": "grid",
    "Results": [
        {
            "Description": "Do exercitation occaecat Lorem dolore labore culpa quis.",
            "Help": "Aliquip commodo sunt adipisicing officia irure laborum reprehenderit nulla consectetur in minim.",
            "Type": "image",
            "Path": "/path/to/image",
            "Size": "normal",
            "Format": "%20f"
        },
        {
            "Description": "Sit pariatur magna nisi do.",
            "Help": "Velit id adipisicing tempor Lorem. Tempor dolore proident ea quis.",
            "Type": "percent",
            "Path": "/path/to/fileresult",
            "Size": "wide",
            "Format": "RGB(2,3,4)"
        }
    ],
    "CleanPatterns":["*.tmp"],
    "Logs": {
        "Description": "",
        "Path": []
    }
}

If exist an error then

# Result with error
dataWithError = DataExport(Version=0.1, HasError=True,
                          DisplayType=DisplayType.grid, Results=[],CleanPatterns=['*.tmp'],
                          Logs=DataLog("Voluptate sint sint eu aliqua consequat culpa nisi fugiat nostrud aute adipisicing.", 
                                       ["/path/log1","/path/log2","/path/log3"]))
print(dataWithError.getJSON())

Then the output is:

{
    "Version": 0.1,
    "HasError": true,
    "DisplayType": "grid",
    "Results": [],
    "CleanPatterns":["*.tmp"],
    "Logs": {
        "Description": "Voluptate sint sint eu aliqua consequat culpa nisi fugiat nostrud aute adipisicing.",
        "Path": [
            "/path/log1",
            "/path/log2",
            "/path/log3"
        ]
    }
}

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

lenden-0.0.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

lenden-0.0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file lenden-0.0.1.1.tar.gz.

File metadata

  • Download URL: lenden-0.0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for lenden-0.0.1.1.tar.gz
Algorithm Hash digest
SHA256 f9b0f2e3fa809595caa0f37350d630279ad03034fdf77b233d062487e1bbbee5
MD5 0e44254b5ac4e7dd20a68d35b7508692
BLAKE2b-256 04bdcb4247947c58fafb3e4f539b00f63b699503bb0415fc06deebae6d305d3a

See more details on using hashes here.

File details

Details for the file lenden-0.0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lenden-0.0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for lenden-0.0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46ab99b8ba1dedfe9f51f47e9bce3842e377e2dc59138626818535cda9a8b2ae
MD5 42061b8538310419d8509efbd686a6bf
BLAKE2b-256 c8160ea05163988b15be27c70aa8e0521fd0f6861e5f43d0f6219b9a22745c40

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