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):
def run():
try:
writeStatus("INITIAL")
# writeStatus("INITIAL")
strtree = STRtree(pickle.load(pkg_resources.resource_stream(__name__, '/'.join(('resources', 'strtree.pickle')))))
m = Model()()
with open('input.json',"r") as inputfile:
writeStatus("PARTIAL")
# writeStatus("PARTIAL")
inputfeaturecollection = json.load(inputfile)
output = {}
multipointoutlet = {}
......@@ -87,13 +87,13 @@ def run():
Cloudtrack.write(outputfeaturecollection)
Particletrack.write(outputfeaturecollection)
Output.write(outputfeaturecollection)
writeStatus("COMPLETE")
# Output.write(outputfeaturecollection)
# writeStatus("COMPLETE")
sys.exit(0)
except Exception as error:
print_exc()
writeStatus("ERROR")
# writeStatus("ERROR")
sys.exit(1)
'''
To run in terminal call with python __init__.py
......
......@@ -226,6 +226,6 @@ class Model(object):
if (i % 10 == 0):
Cloudtrack.write(featurecollection)
Particletrack.write(featurecollection)
Output.write(featurecollection)
# Output.write(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