Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
exercisemodel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
wt
exercisemodel
Commits
6082ac97
Commit
6082ac97
authored
Dec 11, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed writing taskinfo and output.json
parent
5d33feb2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
exercisemodel/__init__.py
exercisemodel/__init__.py
+5
-5
exercisemodel/model.py
exercisemodel/model.py
+1
-1
No files found.
exercisemodel/__init__.py
View file @
6082ac97
...
@@ -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
...
...
exercisemodel/model.py
View file @
6082ac97
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment