Skip to main content

Uniovi Simur WearablePerMed metabolic expenditure

Project description

Project generated with PyScaffold

uniovi-simur-wearablepermed-mets

Uniovi Simur WearablePerMed metabolic expenditure

A longer description of your project goes here...

Create venv in windows

  ```
 Open Anaconda Prompt
 Go to the git project folder ($ cd .....)
 $ python -m venv .venv                  
 $ .venv\Scripts\activate
 Do ($ conda deactivate) to remove (base)             
 ```

How install packets in venv in Windows

 ```
 Open Anaconda Prompt
 Go to the git project folder ($ cd .....)
 Apply ($ .venv\Scripts\activate)
 Do ($ conda deactivate) to remove (base)

 Then, it is able to do ($ pip install ....)

 ($ exit) for exit
 ```

Save dependencies in a requirements .txt

 ```
 $ pip freeze > requirements.txt
 ```

Create venv in Linux and install the dependencies

  ```
 $ python3 -m venv .venv
 $ source .venv/bin/activate
 $ pip install -r requirements.txt
 ```

Create dockerFile and Compile de image

 ```
 Imagen base: aunque sea python, es una distribucion de linux con un python instalado
 Crearse una carpeta /app en esa imagen de linux 
 Actualizar el git del linux
 Actualizar el pip

 Copiar de la carpeta donde se ubica el Dockefile el requirements
 Instalar con el pip el requirements

 Guardar el fichero de python el la carpeta /app de esa imagen de linux

 (CMD [ "sh" ]) Permite tener una shell, sin embargo, si se hace un docker run no se vería porque el contenedor
 se crea y se destruye. Para ver esa imagen de linux hay que añadir el parametro -it, que permite tener una shell
 interactiva y permite jugar con el linux. Todo lo que se quiera guardar de forma persistente deberia guardarse en un
 volumen en una ruta del host.

 ```

Execute from Docker

 ```
 -v Volumenes: ruta que permite compartir archivos entre el host y el contenedor. Monta los archivos de la ruta del host (un Windows, un servidor linux ...) en la ruta deseada del contenedor (un linux que corre en el contenedor). Permite guardar datos importantes en el host aunque el contenedor muera. Hay que seguirlo del nombre del contenedor.
 python mas el nombre del fichero ejecutable
 Parámetros

 Ejemplo:

 $ docker run \
  -v /mnt/nvme1n2/git/uniovi-simur-wearablepermed-data/input:/app/data uniovi-simur-wearablepermed-mets:1.0.0 \
 python windowing_mets.py \
 --ruta-datos-features data/PMP1006/data_1006_tot_M_features.npz \
 --ruta-excel-fase-reposo 'data/PMP1006/PMP1006_REPOSO_20240927(CPET Cámara de Mezcla).xlsx' \
 --ruta-excel-tapiz-rodante 'data/PMP1006/PMP1006_TREADMILL_20240927(CPET Respiración a Respiración).xlsx' \
 --ruta-excel-sts 'data/PMP1006/PMP1006_STS_20240927(CPET Respiración a Respiración).xlsx' \
 --ruta-excel-incremental 'data/PMP1006/PMP1006_GXT_20240927(CPET Respiración a Respiración).xlsx'
 ```

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_mets-1.1.0.tar.gz (26.5 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_mets-1.1.0.tar.gz.

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_mets-1.1.0.tar.gz
Algorithm Hash digest
SHA256 59257bae1e68085b1bb5b1d6ce2cfdb34dc80708818fc7bc4b4398a54c7afc6c
MD5 28f6fc85f6f8e67afe834fd937cf6f89
BLAKE2b-256 0c377f034159b589719485cdf7931853e1c50f0467093052505b5a9e7f701580

See more details on using hashes here.

File details

Details for the file uniovi_simur_wearablepermed_mets-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for uniovi_simur_wearablepermed_mets-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 586544eab5b57a2ecba615dd76ac9b5558cf66abff1f14990485d482252f4701
MD5 793beafc99e763a7acb1ebe441a11ad5
BLAKE2b-256 3430697180ecbbbb21465634fcbce7a2148b5293ff90ac449b41a44fc9f79cd9

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