Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
1ee976dd
Commit
1ee976dd
authored
2 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
Update pypcc/opcuaserv/convert_unit.py
parent
eee3d2fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#44999
passed
2 years ago
Stage: image
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pypcc/opcuaserv/convert_unit.py
+4
-1
4 additions, 1 deletion
pypcc/opcuaserv/convert_unit.py
with
4 additions
and
1 deletion
pypcc/opcuaserv/convert_unit.py
+
4
−
1
View file @
1ee976dd
...
@@ -8,6 +8,9 @@ def period2RPM(T):
...
@@ -8,6 +8,9 @@ def period2RPM(T):
def
bool_invert
(
T
):
def
bool_invert
(
T
):
return
not
(
T
);
return
not
(
T
);
def
bool_invert_inv
(
T
):
return
not
(
T
);
def
temp_check
(
T
):
def
temp_check
(
T
):
if
(
T
<-
100
)
or
(
T
>
200
):
return
float
(
'
nan
'
)
if
(
T
<-
100
)
or
(
T
>
200
):
return
float
(
'
nan
'
)
return
T
;
return
T
;
...
@@ -16,4 +19,4 @@ def int12_to_bool_inv(data):
...
@@ -16,4 +19,4 @@ def int12_to_bool_inv(data):
return
1
if
data
else
2
return
1
if
data
else
2
def
int12_to_bool
(
data
):
def
int12_to_bool
(
data
):
return
data
==
1
return
data
==
1
\ No newline at end of file
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