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
P
padmwsverify
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stw
wt
padmwsverify
Commits
ca844038
Commit
ca844038
authored
Feb 14, 2017
by
Tomas Pettersson
🏸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
40849479
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
4 deletions
+12
-4
input/bf_nemo_1.json
input/bf_nemo_1.json
+2
-0
input/helcom_nemo_1.json
input/helcom_nemo_1.json
+1
-0
input/helcom_nemo_2.json
input/helcom_nemo_2.json
+1
-0
input/vn_nemo_1.json
input/vn_nemo_1.json
+1
-0
runner/__init__.pyc
runner/__init__.pyc
+0
-0
runner/model.py
runner/model.py
+2
-0
runner/model.pyc
runner/model.pyc
+0
-0
validate.py
validate.py
+5
-4
No files found.
input/bf_nemo_1.json
View file @
ca844038
...
...
@@ -26,5 +26,7 @@
}
],
"timeperiod"
:
3
,
"maxperiod"
:
47
,
"domain"
:
"BF_NEMO"
}
\ No newline at end of file
input/helcom_nemo_1.json
View file @
ca844038
...
...
@@ -38,5 +38,6 @@
}
],
"timeperiod"
:
3
,
"maxperiod"
:
200
,
"domain"
:
"HELCOM_NEMO"
}
\ No newline at end of file
input/helcom_nemo_2.json
View file @
ca844038
...
...
@@ -26,6 +26,7 @@
}
],
"timeperiod"
:
3
,
"maxperiod"
:
200
,
"domain"
:
"HELCOM_NEMO"
}
\ No newline at end of file
input/vn_nemo_1.json
View file @
ca844038
...
...
@@ -26,5 +26,6 @@
}
],
"timeperiod"
:
3
,
"maxperiod"
:
59
,
"domain"
:
"VN_NEMO"
}
\ No newline at end of file
runner/__init__.pyc
View file @
ca844038
No preview for this file type
runner/model.py
View file @
ca844038
...
...
@@ -35,6 +35,8 @@ class Runner(object):
end
=
datetime
.
utcnow
()
end
+=
timedelta
(
hours
=
jdata
[
'timeperiod'
])
if
(
timeperiod
):
if
(
timeperiod
>
jdata
[
'maxperiod'
]):
timeperiod
=
jdata
[
'maxperiod'
]
end
=
datetime
.
utcnow
()
end
+=
timedelta
(
hours
=
timeperiod
)
setting
[
'end'
]
=
end
.
strftime
(
"%Y-%m-%d %H:%M"
)
+
':00'
...
...
runner/model.pyc
View file @
ca844038
No preview for this file type
validate.py
View file @
ca844038
...
...
@@ -13,11 +13,12 @@ def main(method):
for
m
in
mlist
:
m
(
24
,
'validate'
,
300
);
sleep
(
3
)
elif
method
==
'b'
:
raise
ValueError
(
'B is not implemented'
)
elif
method
==
'long'
:
for
m
in
mlist
:
m
(
200
,
'validate'
,
300
);
sleep
(
3
)
else
:
raise
ValueError
(
'Validation method is not defined. Try using python validate.py all'
)
sys
.
exit
(
0
)
except
Exception
as
error
:
print
error
...
...
@@ -29,5 +30,5 @@ if __name__ == "__main__":
method
=
''
if
(
len
(
sys
.
argv
)
>
1
):
method
=
sys
.
argv
[
1
]
main
(
method
)
main
(
method
)
\ No newline at end of file
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