Code Monkey home page Code Monkey logo

basal_temperature_method's Introduction

Basal temperature method

Basal temperature method algorithm test implementation based on wikipedia article description. With the basal temperature method the possible ovulation date can be calculated. The ovulation date is an important part of birth control, contraception, fertility control.

Run script

The script was made only for testing purposes. To run the script just use python in command line

python ovulation_calculation.py

Edit

The temperature and dates can be added manualy in the file ovulation_calculation.py. File includes couple list with example basal temperature sequence.

temperature_list = (
    {'date': '2020-01-01', 'temperature': 36.6},
    {'date': '2020-01-02', 'temperature': 36.7},
    {'date': '2020-01-03', 'temperature': 36.5},
    {'date': '2020-01-04', 'temperature': 36.6},
    {'date': '2020-01-05', 'temperature': 37.4},
    {'date': '2020-01-06', 'temperature': 37.3},
    {'date': '2020-01-07', 'temperature': 36.8},
    {'date': '2020-01-08', 'temperature': 36.8},
    {'date': '2020-01-09', 'temperature': 36.9},
    {'date': '2020-01-10', 'temperature': 36.7},
    {'date': '2020-01-11', 'temperature': 36.8},
    {'date': '2020-01-12', 'temperature': 36.6},
    {'date': '2020-01-13', 'temperature': 36.6},
    {'date': '2020-01-14', 'temperature': 36.6},
    {'date': '2020-01-15', 'temperature': 36.5},
    {'date': '2020-01-16', 'temperature': 36.4},
    {'date': '2020-01-17', 'temperature': 36.7},
    {'date': '2020-01-18', 'temperature': 36.9},
    {'date': '2020-01-19', 'temperature': 37.1},
    {'date': '2020-01-20', 'temperature': 37.2},
    {'date': '2020-01-21', 'temperature': 37.2},
    {'date': '2020-01-22', 'temperature': 37.3},
    {'date': '2020-01-23', 'temperature': 37.0},
    {'date': '2020-01-24', 'temperature': 37.0},
    {'date': '2020-01-25', 'temperature': 37.1},
    {'date': '2020-01-26', 'temperature': 36.9},
    {'date': '2020-01-27', 'temperature': 37.0},
    {'date': '2020-01-28', 'temperature': 37.0},
    {'date': '2020-01-29', 'temperature': 36.9},
    {'date': '2020-01-30', 'temperature': 36.8},
)

basal_temperature_method's People

Contributors

foreverycast 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.