Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
ToolBox
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
Model registry
Operate
Environments
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
SCS
ToolBox
Merge requests
!54
Dssc1module
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Dssc1module
DSSC1module
into
master
Overview
0
Commits
13
Pipelines
0
Changes
2
Merged
Loïc Le Guyader
requested to merge
DSSC1module
into
master
5 years ago
Overview
0
Commits
13
Pipelines
0
Changes
2
Expand
Provides a class to multiprocess one module of DSSC and extract ROIs sum data.
0
0
Merge request reports
Viewing commit
32888c39
Prev
Next
Show latest version
2 files
+
11
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
32888c39
Fix plotting XAS from DSSC1module data
· 32888c39
Loïc Le Guyader
authored
5 years ago
DSSC1module.py
+
5
−
3
Options
@@ -222,7 +222,8 @@ class DSSC1module:
self
.
module_data
[
'
t0
'
]
=
self
.
t0
self
.
plot_title
=
f
"
{
self
.
proposal
}
run:
{
self
.
module_data
[
'
run
'
].
values
}
dark:
{
self
.
dark_data
[
'
run
'
].
values
}
"
self
.
plot_title
=
f
"
{
self
.
proposal
}
run:
{
self
.
module_data
[
'
run
'
].
values
}
dark:
{
self
.
dark_data
[
'
run
'
].
values
}
"
self
.
module_data
.
attrs
[
'
plot_title
'
]
=
self
.
plot_title
def
compute_mask
(
self
,
low
=
0.01
,
high
=
0.8
):
"""
Compute a DSSC module mask from the noise map of a dark run.
@@ -294,9 +295,10 @@ class DSSC1module:
if
save_folder
is
None
:
save_folder
=
self
.
save_folder
fname
=
f
'
run
{
self
.
run_nr
}
_
dark
.h5
'
# no scan
self
.
run_nr
=
dark
_runNB
self
.
dark_data
=
xr
.
open_dataset
(
os
.
path
.
join
(
save_folder
,
f
'
run
{
dark_runNB
}
_dark.h5
'
),
group
=
'
data
'
)
self
.
plot_title
=
f
"
{
self
.
proposal
}
dark:
{
self
.
dark_data
[
'
run
'
].
values
}
"
def
show_rois
(
self
):
fig
,
ax1
=
plt
.
subplots
(
nrows
=
1
,
figsize
=
[
5
,
2.5
])
Loading