getting rid of dummy water model

Former-commit-id: 9941031d8aedb250bedb120f004c735ff65c4c3f
This commit is contained in:
Michael T. Kelbaugh
2019-08-13 15:58:52 -04:00
parent e1a230f322
commit 562fffbf66
9 changed files with 0 additions and 95 deletions

View File

@@ -1,2 +0,0 @@
FROM simon-model:latest
CMD ["python3", "/opt/src/inner_wrapper.py"]

View File

@@ -1,3 +0,0 @@
{
}

View File

@@ -1,13 +0,0 @@
{
"type": "object",
"properties": {
"climate": {
"type": "object",
"properties":{
"data": {"type": "object"},
"granularity": {"type": "string"}
}
}
},
"required": ["climate"]
}

View File

@@ -1,4 +0,0 @@
{
"title": "empty schema",
"description": "matches everything"
}

View File

@@ -1,13 +0,0 @@
{
"type": "object",
"properties": {
"population": {
"type": "object",
"properties":{
"data": {"type": "object"},
"granularity": {"type": "string"}
}
}
},
"required": ["population"]
}

View File

@@ -1,13 +0,0 @@
{
"type": "object",
"properties": {
"water": {
"type": "object",
"properties":{
"data": {"type": "object"},
"granularity": {"type": "string"}
}
}
},
"required": ["water"]
}

View File

@@ -1,4 +0,0 @@
{
"title": "empty schema",
"description": "matches everything"
}

View File

@@ -1,13 +0,0 @@
{
"type": "object",
"properties": {
"water": {
"type": "object",
"properties":{
"data": {"type": "object"},
"granularity": {"type": "string"}
}
}
},
"required": ["water"]
}

View File

@@ -1,30 +0,0 @@
import time
import glob
from random import randint
import sys
sys.path.append('/')
from outer_wrapper import OuterWrapper
class InnerWrapper(OuterWrapper):
def __init__(self):
num_input_schemas = len(glob.glob("/opt/schemas/input/*.json"))
super().__init__(model_id="water", num_expected_inputs=num_input_schemas)
def configure(self, **kwargs):
pass
def increment(self, **kwargs):
print("inner wrapper increment")
time.sleep(randint(1, 3))
return {'water': {'water': {'data': {}, 'granularity': 'county'}}}
def main():
wrapper = InnerWrapper()
wrapper.run()
if __name__ == "__main__":
main()