Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
access-node
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LuFG VR VIS
VR-Group
In Situ Pipeline
access-node
Commits
1a2f0bc9
Commit
1a2f0bc9
authored
5 years ago
by
Jan Müller
Browse files
Options
Downloads
Patches
Plain Diff
Fix error invalid argument handling in get_multimeter_measurements
parent
fa83c9ea
No related branches found
No related tags found
1 merge request
!4
Feature/add arbor support
Pipeline
#163328
canceled
5 years ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
access_node/controllers/nest_controller.py
+3
-3
3 additions, 3 deletions
access_node/controllers/nest_controller.py
with
3 additions
and
3 deletions
access_node/controllers/nest_controller.py
+
3
−
3
View file @
1a2f0bc9
...
@@ -115,18 +115,18 @@ def nest_get_multimeter_measurements(multimeter_id, attribute, _from=None, to=No
...
@@ -115,18 +115,18 @@ def nest_get_multimeter_measurements(multimeter_id, attribute, _from=None, to=No
if
mult
[
'
id
'
]
==
multimeter_id
:
if
mult
[
'
id
'
]
==
multimeter_id
:
multimeter_exists
=
True
multimeter_exists
=
True
if
attribute
not
in
mult
[
'
attributes
'
]:
if
attribute
not
in
mult
[
'
attributes
'
]:
return
Status
(
code
=
400
,
message
=
"
Given multimeter does not measure given attribute
"
)
return
"
Given multimeter does not measure given attribute
"
,
400
mult_gids
=
mult
[
'
gids
'
]
mult_gids
=
mult
[
'
gids
'
]
break
break
if
not
multimeter_exists
:
if
not
multimeter_exists
:
return
Status
(
code
=
400
,
message
=
"
Given multimeter does not exist
"
)
return
"
Given multimeter does not exist
"
,
400
if
gids
==
None
:
if
gids
==
None
:
gids
=
mult_gids
gids
=
mult_gids
else
:
else
:
for
gid
in
gids
:
for
gid
in
gids
:
if
gid
not
in
mult_gids
:
if
gid
not
in
mult_gids
:
return
Status
(
code
=
400
,
message
=
"
Gid
"
+
str
(
gid
)
+
"
is not measured by given Multimeter
"
)
return
"
Gid
"
+
str
(
gid
)
+
"
is not measured by given Multimeter
"
,
400
init
=
True
init
=
True
sim_times
=
[]
sim_times
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment