Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benoit Rousselle
bliss
Commits
1328a2ac
Commit
1328a2ac
authored
May 17, 2019
by
GUILLOU Perceval
Browse files
remove epoch from ScanPrinter
parent
04042f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/data/display.py
View file @
1328a2ac
...
...
@@ -117,6 +117,9 @@ class ScanPrinter:
channel_short_name
=
channels
[
"master"
][
"display_names"
][
channel_fullname
]
channel_unit
=
channels
[
"master"
][
"scalars_units"
][
channel_fullname
]
if
channel_fullname
==
"timer:epoch"
:
continue
# name is in the form 'acq_master:channel_name' <---not necessarily true anymore (e.g. roi counter have . in name / respective channel has additional : in name)
if
channel_short_name
==
"elapsed_time"
:
# timescan
...
...
@@ -150,6 +153,10 @@ class ScanPrinter:
if
channel_short_name
==
"elapsed_time"
:
self
.
col_labels
.
insert
(
1
,
"dt[s]"
)
continue
if
channel_fullname
==
"timer:epoch"
:
continue
self
.
counter_names
.
append
(
channel_short_name
+
(
f
"[
{
channel_unit
}
]"
if
channel_unit
else
""
)
)
...
...
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