mirror of
https://github.com/JHUAPL/SIMoN.git
synced 2026-01-10 15:28:00 -05:00
getting rid of dummy water model
Former-commit-id: 9941031d8aedb250bedb120f004c735ff65c4c3f
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
FROM simon-model:latest
|
||||
CMD ["python3", "/opt/src/inner_wrapper.py"]
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"climate": {
|
||||
"type": "object",
|
||||
"properties":{
|
||||
"data": {"type": "object"},
|
||||
"granularity": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["climate"]
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"title": "empty schema",
|
||||
"description": "matches everything"
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"population": {
|
||||
"type": "object",
|
||||
"properties":{
|
||||
"data": {"type": "object"},
|
||||
"granularity": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["population"]
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"water": {
|
||||
"type": "object",
|
||||
"properties":{
|
||||
"data": {"type": "object"},
|
||||
"granularity": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["water"]
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"title": "empty schema",
|
||||
"description": "matches everything"
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"water": {
|
||||
"type": "object",
|
||||
"properties":{
|
||||
"data": {"type": "object"},
|
||||
"granularity": {"type": "string"}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["water"]
|
||||
}
|
||||
@@ -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()
|
||||
Reference in New Issue
Block a user