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.3.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.3.0.tar.gz.

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_models-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e89fa1132cdd01e08042478ba334e63847ec2fa97b3147a185443d35405c32d4
MD5 7f057e20c0d1e8d7dad953c94f1a7264
BLAKE2b-256 f98c0ed48f5366fd9dbaa9fd32c808cd7095dfcd3569a8ae4ae2cb0a8a13cf8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_models-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d63bc4dc51a8e88ac5086462f39a4a068badb931ae66dc2997ee60f47db39b3
MD5 9b3207132c9bb5caf67a5e6a9085c7a3
BLAKE2b-256 96a1e36bc58f5894c332728e85166bb355388e3795c3272ba63ac1c6b1da97c5

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