Commit 6082ac97 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

removed writing taskinfo and output.json

parent 5d33feb2
...@@ -62,11 +62,11 @@ def writeStatus(status): ...@@ -62,11 +62,11 @@ def writeStatus(status):
def run(): def run():
try: try:
writeStatus("INITIAL") # writeStatus("INITIAL")
strtree = STRtree(pickle.load(pkg_resources.resource_stream(__name__, '/'.join(('resources', 'strtree.pickle'))))) strtree = STRtree(pickle.load(pkg_resources.resource_stream(__name__, '/'.join(('resources', 'strtree.pickle')))))
m = Model()() m = Model()()
with open('input.json',"r") as inputfile: with open('input.json',"r") as inputfile:
writeStatus("PARTIAL") # writeStatus("PARTIAL")
inputfeaturecollection = json.load(inputfile) inputfeaturecollection = json.load(inputfile)
output = {} output = {}
multipointoutlet = {} multipointoutlet = {}
...@@ -87,13 +87,13 @@ def run(): ...@@ -87,13 +87,13 @@ def run():
Cloudtrack.write(outputfeaturecollection) Cloudtrack.write(outputfeaturecollection)
Particletrack.write(outputfeaturecollection) Particletrack.write(outputfeaturecollection)
Output.write(outputfeaturecollection) # Output.write(outputfeaturecollection)
writeStatus("COMPLETE") # writeStatus("COMPLETE")
sys.exit(0) sys.exit(0)
except Exception as error: except Exception as error:
print_exc() print_exc()
writeStatus("ERROR") # writeStatus("ERROR")
sys.exit(1) sys.exit(1)
''' '''
To run in terminal call with python __init__.py To run in terminal call with python __init__.py
......
...@@ -226,6 +226,6 @@ class Model(object): ...@@ -226,6 +226,6 @@ class Model(object):
if (i % 10 == 0): if (i % 10 == 0):
Cloudtrack.write(featurecollection) Cloudtrack.write(featurecollection)
Particletrack.write(featurecollection) Particletrack.write(featurecollection)
Output.write(featurecollection) # Output.write(featurecollection)
return featurecollection return featurecollection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment