File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 3
3
__version__ = "1.1.3" # update VERSION in constants.py
4
4
__author__ = "Predictive Healthcare @ Penn Medicine"
5
5
6
- from os import path
7
- from setuptools import setup , find_packages , find_namespace_packages
6
+ from setuptools import setup , find_namespace_packages
8
7
9
8
10
9
setup (
24
23
install_requires = [
25
24
"altair" ,
26
25
"black" ,
26
+ "gspread" ,
27
27
"gunicorn" ,
28
28
"dash" ,
29
29
"dash_bootstrap_components" ,
42
42
"Operating System :: OS Independent" ,
43
43
],
44
44
python_requires = '>=3.7' ,
45
- entry_points = {
45
+ entry_points = {
46
46
'console_scripts' : ['penn_chime=penn_chime.cli:main' ],
47
47
},
48
48
keywords = [],
49
49
include_package_data = True ,
50
50
)
51
-
Original file line number Diff line number Diff line change 19
19
)
20
20
from .validators import (
21
21
Date ,
22
+ GteOne ,
22
23
OptionalDate ,
23
24
OptionalValue ,
24
25
OptionalStrictlyPositive ,
@@ -64,7 +65,7 @@ class Disposition(_Disposition):
64
65
@classmethod
65
66
def create (cls , * , days : int , rate : float ):
66
67
"""Mandate key word arguments."""
67
- Positive (key = "days" , value = days )
68
+ GteOne (key = "days" , value = days )
68
69
Rate (key = "rate" , value = rate )
69
70
return cls (days , rate )
70
71
@@ -201,7 +202,7 @@ def validate(string):
201
202
(
202
203
"hospitalized_days" ,
203
204
int ,
204
- 0 ,
205
+ 1 ,
205
206
None ,
206
207
True ,
207
208
),
@@ -215,7 +216,7 @@ def validate(string):
215
216
(
216
217
"icu_days" ,
217
218
int ,
218
- 0 ,
219
+ 1 ,
219
220
None ,
220
221
True ,
221
222
),
@@ -285,7 +286,7 @@ def validate(string):
285
286
(
286
287
"ventilated_days" ,
287
288
int ,
288
- 0 ,
289
+ 1 ,
289
290
None ,
290
291
True ,
291
292
),
Original file line number Diff line number Diff line change 15
15
OptionalStrictlyPositive = ValOptionalBounded (lower_bound = EPSILON )
16
16
StrictlyPositive = ValBounded (lower_bound = EPSILON )
17
17
Positive = ValBounded (lower_bound = - EPSILON )
18
+ GteOne = ValBounded (lower_bound = 1 )
18
19
Rate = ValRate ()
19
20
Date = ValDate ()
20
21
OptionalDate = ValOptionalDate ()
You can’t perform that action at this time.
0 commit comments