Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
DevHub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
DevHub
Commits
eaa0faed
Commit
eaa0faed
authored
2 years ago
by
Thomas Bock
Browse files
Options
Downloads
Plain Diff
Merge branch 'keepall'
parents
ac3dbc93
bd67550d
Branches
Branches containing commit
Tags
0.16.457
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/devhub/pp.clj
+1
-0
1 addition, 0 deletions
src/devhub/pp.clj
src/devhub/pp_scripts/inf_bcg450.clj
+24
-4
24 additions, 4 deletions
src/devhub/pp_scripts/inf_bcg450.clj
with
25 additions
and
4 deletions
src/devhub/pp.clj
+
1
−
0
View file @
eaa0faed
...
...
@@ -74,6 +74,7 @@
:im540.pressure-rise
(
im540/pressure-rise
task
)
:inf-cube.readout
(
inf-cube/readout
task
)
:inf-bcg450.readout
(
inf-bcg450/readout
task
)
:inf-bcg450.readout-vec
(
inf-bcg450/readout-vec
task
)
:inf-cube.readout-vec
(
inf-cube/readout-vec
task
)
:maxigauge.read-out
(
maxigauge/read-out
task
)
:maxigauge.read-all
(
maxigauge/read-all
task
)
...
...
This diff is collapsed.
Click to expand it.
src/devhub/pp_scripts/inf_bcg450.clj
+
24
−
4
View file @
eaa0faed
...
...
@@ -2,7 +2,8 @@
^
{
:author
"Thomas Bock <wactbprot@gmail.com>"
:doc
"Post processing for Inficon binary protocol."
}
(
:require
[
devhub.pp-utils
:as
ppu
]
[
devhub.utils
:as
u
]))
[
devhub.utils
:as
u
]
[
clojure.string
:as
string
]))
(
def
conf
{
:start-vec
[
7
5
]
:meas-offset
4
...
...
@@ -63,7 +64,26 @@
(
p-vec->meas-vec
i
)
(
meas-vec->meas-val
u
))))
(
defn
volt
[
s
]
(
->
s
(
string/split
#
","
)
first
))
(
defn
volt->mbar
[
x
]
(
Math/pow
10
(
/
(
-
(
u/number
(
volt
x
))
7.75
)
0.75
)))
(
defn
readout
[{
x
:_x
:as
task
}]
(
let
[
v
(
mapv
meas-val
x
)
u
(
->
x
first
meas-unit
)]
(
merge
task
{
:Result
[(
ppu/vl-result
"ind"
v
u
)]})))
(
merge
task
{
:Result
[(
ppu/vl-result
(
get-in
task
[
:PostScriptInput
:Type
])
(
mapv
volt->mbar
x
)
"mbar"
)]}))
(
defn
readout-vec
[{
x
:_x
:as
task
}]
(
merge
task
{
:Result
[{
:Type
(
get-in
task
[
:PostScriptInput
:Type
])
:Value
(
mapv
volt->mbar
x
)
:Unit
"mbar"
}]}))
(
defn
readout-rs232
[{
x
:_x
:as
task
}]
(
merge
task
{
:Result
[(
ppu/vl-result
(
get-in
task
[
:PostScriptInput
:Type
])
(
mapv
meas-val
x
)
(
get-in
task
[
:PostScriptInput
:Unit
]))]}))
(
defn
readout-rs232-vec
[{
x
:_x
:as
task
}]
(
merge
task
{
:Result
[{
:Type
(
get-in
task
[
:PostScriptInput
:Type
])
:Value
(
mapv
meas-val
x
)
:Unit
(
get-in
task
[
:PostScriptInput
:Unit
])}]}))
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