Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-spectrometer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
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
Service Desk
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QuTech
python-spectrometer
Commits
d5dcc604
Commit
d5dcc604
authored
8 months ago
by
Tobias Hangleiter
Browse files
Options
Downloads
Patches
Plain Diff
Make processed unit defalut to raw unit
parent
40dba030
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!56
Add live view tool
Pipeline
#1620771
waiting for manual action
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/python_spectrometer/_plot_manager.py
+2
-2
2 additions, 2 deletions
src/python_spectrometer/_plot_manager.py
src/python_spectrometer/core.py
+5
-5
5 additions, 5 deletions
src/python_spectrometer/core.py
with
7 additions
and
7 deletions
src/python_spectrometer/_plot_manager.py
+
2
−
2
View file @
d5dcc604
...
...
@@ -30,7 +30,7 @@ class PlotManager:
plot_amplitude
:
bool
=
True
,
plot_density
:
bool
=
True
,
plot_cumulative_normalized
:
bool
=
False
,
plot_style
:
_styleT
=
'
fast
'
,
plot_update_mode
:
str
=
'
never
'
,
plot_dB_scale
:
bool
=
False
,
prop_cycle
=
None
,
raw_unit
:
str
=
'
V
'
,
processed_unit
:
str
=
'
V
'
,
raw_unit
:
str
=
'
V
'
,
processed_unit
:
str
|
None
=
None
,
uses_windowed_estimator
:
bool
=
True
,
figure_kw
:
Optional
[
Mapping
]
=
None
,
subplot_kw
:
Optional
[
Mapping
]
=
None
,
gridspec_kw
:
Optional
[
Mapping
]
=
None
,
legend_kw
:
Optional
[
Mapping
]
=
None
):
...
...
@@ -49,7 +49,7 @@ class PlotManager:
self
.
_plot_style
=
plot_style
self
.
_plot_update_mode
=
plot_update_mode
self
.
_plot_dB_scale
=
plot_dB_scale
self
.
_processed_unit
=
processed_unit
self
.
_processed_unit
=
processed_unit
if
processed_unit
is
not
None
else
raw_unit
# For dB scale plots, default to the first spectrum acquired.
self
.
_reference_spectrum
:
Optional
[
_keyT
]
=
None
...
...
...
...
This diff is collapsed.
Click to expand it.
src/python_spectrometer/core.py
+
5
−
5
View file @
d5dcc604
...
...
@@ -220,7 +220,7 @@ class Spectrometer:
processed_unit : str
The unit of the processed data. Can also be set dynamically by
setting :attr:`processed_unit` in case it changed when using
:meth:`reprocess_data`.
:meth:`reprocess_data`.
Defaults to `raw_unit`.
figure_kw, gridspec_kw, subplot_kw, legend_kw : Mappings
Keyword arguments forwarded to the corresopnding matplotlib
constructors.
...
...
@@ -383,7 +383,7 @@ class Spectrometer:
threaded_acquisition
:
bool
=
True
,
purge_raw_data
:
bool
=
False
,
prop_cycle
=
None
,
savepath
:
_pathT
=
None
,
relative_paths
:
bool
=
True
,
compress
:
bool
=
True
,
raw_unit
:
str
=
'
V
'
,
processed_unit
:
str
=
'
V
'
,
figure_kw
:
Optional
[
Mapping
]
=
None
,
processed_unit
:
str
|
None
=
None
,
figure_kw
:
Optional
[
Mapping
]
=
None
,
subplot_kw
:
Optional
[
Mapping
]
=
None
,
gridspec_kw
:
Optional
[
Mapping
]
=
None
,
legend_kw
:
Optional
[
Mapping
]
=
None
):
...
...
...
...
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
sign in
to comment