Skip to main content

Uniovi Simur WearablePerMed Models.

Project description

Project generated with PyScaffold

uniovi-simur-wearablepermed-models

Uniovi Simur WearablePerMed Models.

A longer description of your project goes here...

1. Get all model types

$ models --list-types

2. Get all models inside a type

$ models --list-type-models mono_sensor

3. Get all models everywhere

$ models --list-all

4. Using the library to get models from code

A sample of use inside your code

from wearablepermed_models.main import get_model_types, load_manifest, get_package_root
from pathlib import Path

def get_model_file_path(model_type: str, model_key: str) -> Path:
    """Returns the actual system file path of a pkl file using its registration key."""
    manifest = load_manifest(model_type)
    if model_key not in manifest:
        raise KeyError(f"Key '{model_key}' not found in model type '{model_type}'")
        
    filename = manifest[model_key]["filename"]
    return get_package_root() / model_type / filename

print(get_model_file_path('mono_sensor', 'model_1'))

Note

This project has been set up using PyScaffold 4.6. For details and usage information on PyScaffold see https://pyscaffold.org/.

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

uniovi_simur_wearablepermed_models-1.2.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file uniovi_simur_wearablepermed_models-1.2.0.tar.gz.

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_models-1.2.0.tar.gz
Algorithm Hash digest
SHA256 841a889ac2998238cc741e61d681151eecc0abd6f6a8f3255d530fd2e01d5080
MD5 9953c29ae661316ba69949a021cd383d
BLAKE2b-256 0e13e22cab203acfa9e03149334899e49d95a17dc3d3adce153c89b6ce0fc303

See more details on using hashes here.

File details

Details for the file uniovi_simur_wearablepermed_models-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_models-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ab6dca20c1963a901cb4a622593f4e08725cc67426d05dd99a7740c5d91d89a
MD5 9417d244ac5fae3283900d5f39927d6b
BLAKE2b-256 fb2de56fd64645c17bf9c147ff90fe3da3b555d74b461be6ef12f019f826429d

See more details on using hashes here.

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