diff --git a/pk_optimizer/pkGUI.ipynb b/pk_optimizer/pkGUI.ipynb deleted file mode 100644 index c4543913d5dd484baa9d7167e8626fecbc081579..0000000000000000000000000000000000000000 --- a/pk_optimizer/pkGUI.ipynb +++ /dev/null @@ -1,142 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [], - "source": [ - "#Import Everything\n", - "\n", - "class pkGUI:\n", - " \"\"\"The pkGUI object creates a GUI of size x by y to display the optimization of parameters for PK models.\"\"\"\n", - " \n", - " def __init__ (self, xdim = 512, ydim = 320, numParam = 4, Flow = 1, Vp = 0.1, Visf = 0.5, PS = 0.15):\n", - " \n", - " \"\"\"Initializes the GUI with default size 512 by 320 pixels and one button to start optimization.\n", - " Parameters\n", - " ----------\n", - " xdim : int\n", - " xdim is used for defining the x dimension of your GUI size.\n", - " \n", - " ydim : int\n", - " ydim is used for defining the y dimension of your GUI size.\n", - " \n", - " numParam: int\n", - " numParam is the number of parameters you want to optimize for the model. Defaults to 4.\n", - " \n", - " Flow : double\n", - " Flow is the flow of plasma through the blood vessel in mL/(mL*min). Defaults to 1.\n", - " \n", - " Vp : double\n", - " Vp is the volume of plasma in mL. Defaults to 0.1.\n", - " \n", - " Visf : double\n", - " Visf is the volume of interstitial fluid in mL. Defaults to 0.5.\n", - " \n", - " PS : double\n", - " PS is the permeability-surface area constant in mL/(g*min). Defaults to 0.15. \n", - " \"\"\"\n", - " \n", - " self.xdim = xdim\n", - " self.ydim = ydim\n", - " self.numParam = numParam\n", - " self.Flow = Flow\n", - " self.Vp = Vp\n", - " self.Visf = Visf\n", - " self.PS = PS\n", - " \n", - " #build GUI with dims x, y\n", - " #build button in center named Optimize!\n", - " \n", - " def slider(numParam = 4, labels = ['Flow', 'Vp', 'Visf', 'PS']):\n", - " \"\"\"Adds a slider for each parameter to the GUI with labels as their names.\n", - " Parameters\n", - " ----------\n", - " numParam : int\n", - " numParam is defaulted to 4 (self.numParam) and is used for defining the number of sliders in th GUI.\n", - " \n", - " labels : str[]\n", - " labels are defaulted to Flow, Vp, Visf, and PS, and are used for naming the sliders.\n", - " \"\"\"\n", - " #Creates and sliders with names for each model.\n", - " #EVENT: move sliders = move parameter values and change model\n", - " \n", - " def IOBoxes(numParam = 4):\n", - " \"\"\"Creates text boxes for initial guesses and output text boxes for final parameter values.\n", - " Parameters\n", - " ----------\n", - " numParam : int\n", - " numParam is defaulted to 4 (self.numParam) and is used for defining the number of text boxes in th GUI.\n", - " \"\"\"\n", - " #Creates text boxes for initial guesses\n", - " #Creates text boxes for displaying output (optimized) values.\n", - " \n", - " def passValues(paramName, paramVal):\n", - " \"\"\"If a parameter is changed from slider, it will pass the changes to the Model object and text boxes.\n", - " Parameters\n", - " ----------\n", - " paramName : str\n", - " paramName is the name of the parameter that changed.\n", - " \n", - " paramVal : double\n", - " paramVal is the new value of the parameter that is passed to the model and text boxes.\n", - " \"\"\"\n", - " self.paramName = paramVal\n", - " \n", - " #update text box output\n", - " #update model\n", - " \n", - " def getValues(paramName, model):\n", - " \"\"\"Get the parameter value of paramName from model model.\n", - " \n", - " Parameters\n", - " ----------\n", - " paramName : str\n", - " paramName is the name of the parameter that changed.\n", - " \n", - " model : model object\n", - " model is the model you want to get values from.\n", - " \"\"\"\n", - " #call object for value\n", - " \n", - " def dispModel(objModel):\n", - " \"\"\"Displays a Model object in GUI.\n", - " Parameters\n", - " ----------\n", - " objModel : Model object\n", - " objModel will be either a 1 Comp or 2 Comp model and will be displayed in the GUI.\n", - " \"\"\"\n", - " #Displays model in GUI" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.7.1" - } - }, - "nbformat": 4, - "nbformat_minor": 2 -}