Giter VIP home page Giter VIP logo

cogorza's Introduction

Cogorza

A program to predict BAC in bloodstream giving a set of drinks by assuming mass conservation.


Requirements:

  • python 3
  • numpy
  • pandas
  • matplotlib
  • scipy

Input parameters:

  • Body Mass: M (in kg)

  • Gender : man/woman

  • Mass to blood ratio: Cs (L/kg) : 0.067 L/kg

  • Proportion of alcohol absorbed : Abs : 10% for man, 12% for woman

  • Time of alcohol absorption : tabs (between 15 and 60 min, depending on amount and type of food in stomach)

  • initial BAC : a0 (by default, 0 g/L)

  • simulation lenght : in hours

  • time step integration, in seconds (by default, 1s)

  • start time of simulation (0 s by default)

  • For each drink:

  1. Volumne ingested (in mL)
  2. Strenght of alcoholic drink (divided by 100, ej. beer of 5% graduation is 0.05)
  3. initial time of ingestion (in seconds since start time)
  4. final time of ingestion (in secods from start time of simulation)

Resources:

  • An implementation of Python program is provided in Cogorza.py file. The same implementation is provided in jupyter notebook version (Cogorza.ipynb).

  • BACPY.csv is the output data file provided by running the program

  • The "Ouput" folder, a set of output examples are presented as png files. Example:

A test image


How to run Cogorza:

To run it using python :

  • In CLI, just type "python Cogorza.py"

cogorza's People

Contributors

tonibois avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.