Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Python Unified Device Interface
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Show more breadcrumbs
WZL-IQS-Public
Sensor Interfacing Language (SOIL)
Python Unified Device Interface
Commits
8a0f1647
Commit
8a0f1647
authored
1 year ago
by
Matthias Stefan Bodenbenner
Browse files
Options
Downloads
Patches
Plain Diff
fixed unit handling for the metadata provisioning
parent
bf20ebc8
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#377275
passed
1 year ago
Stage: build
Stage: push
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
setup.py
+1
-1
1 addition, 1 deletion
setup.py
src/soil/measurement.py
+3
-2
3 additions, 2 deletions
src/soil/measurement.py
with
8 additions
and
4 deletions
README.md
+
4
−
1
View file @
8a0f1647
[

](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
[

](https://git-ce.rwth-aachen.de/wzl-mq-ms/forschung-lehre/lava/unified-device-interface/python/commits/master)
# Python Unified Device Interface
# Python Unified Device Interface
Current stable version: 10.0.
6
Current stable version: 10.0.
7
## Installation
## Installation
1.
Install the WZL-UDI package via pip
1.
Install the WZL-UDI package via pip
...
@@ -69,6 +69,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
...
@@ -69,6 +69,9 @@ Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation)
## Recent changes
## Recent changes
**10.0.7**
- 2024-03-22
-
fixed unit handling for the metadata provisioning
**10.0.6**
- 2024-03-22
**10.0.6**
- 2024-03-22
-
fixed validation of rfc3339 datetime strings
-
fixed validation of rfc3339 datetime strings
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
8a0f1647
...
@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
...
@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
long_description
=
fh
.
read
()
long_description
=
fh
.
read
()
setup
(
name
=
'
wzl-udi
'
,
setup
(
name
=
'
wzl-udi
'
,
version
=
'
10.0.
6
'
,
version
=
'
10.0.
7
'
,
url
=
'
https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python
'
,
url
=
'
https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python
'
,
project_urls
=
{
project_urls
=
{
"
Bug Tracker
"
:
"
https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues
"
,
"
Bug Tracker
"
:
"
https://git-ce.rwth-aachen.de/wzl-mq-public/soil/python/-/issues
"
,
...
...
This diff is collapsed.
Click to expand it.
src/soil/measurement.py
+
3
−
2
View file @
8a0f1647
...
@@ -238,10 +238,11 @@ class Measurement(Variable):
...
@@ -238,10 +238,11 @@ class Measurement(Variable):
# create result node
# create result node
unit_triples
=
list
(
self
.
_metadata
.
triples
((
None
,
Namespaces
.
qudt
.
applicableUnit
,
None
)))
unit_triples
=
list
(
self
.
_metadata
.
triples
((
None
,
Namespaces
.
qudt
.
applicableUnit
,
None
)))
assert
len
(
unit_triples
)
==
1
assert
self
.
datatype
in
[
Datatype
.
STRING
,
Datatype
.
ENUM
,
Datatype
.
BOOLEAN
,
Datatype
.
TIME
]
or
len
(
unit_triples
)
==
1
data_graph
.
add
((
result_subject
,
Namespaces
.
rdf
.
type
,
rdflib
.
URIRef
(
Namespaces
.
sosa
.
Result
)))
data_graph
.
add
((
result_subject
,
Namespaces
.
rdf
.
type
,
rdflib
.
URIRef
(
Namespaces
.
sosa
.
Result
)))
data_graph
.
add
((
result_subject
,
Namespaces
.
sosa
.
isResultOf
,
measurement_subject
))
data_graph
.
add
((
result_subject
,
Namespaces
.
sosa
.
isResultOf
,
measurement_subject
))
if
len
(
unit_triples
)
==
1
:
data_graph
.
add
((
result_subject
,
Namespaces
.
qudt
.
unit
,
unit_triples
[
0
][
2
]))
data_graph
.
add
((
result_subject
,
Namespaces
.
qudt
.
unit
,
unit_triples
[
0
][
2
]))
data_graph
.
add
((
result_subject
,
Namespaces
.
schema
.
license
,
Semantics
.
data_license
))
data_graph
.
add
((
result_subject
,
Namespaces
.
schema
.
license
,
Semantics
.
data_license
))
...
...
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