Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ixstools
xrstools
Commits
8013795f
Commit
8013795f
authored
Nov 02, 2020
by
Alessandro Mirone
Browse files
importing again the high resolution deconvolution
parent
c92ea4c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
XRStools/XRS_swissknife.py
View file @
8013795f
...
...
@@ -704,7 +704,7 @@ def calculate_recenterings(mydata):
h5B
=
h5B_f
[
bariB_groupname
]
offs
=
{}
chiavi
=
filterRoiList
(
h5A
.
keys
())
chiavi
=
filterRoiList
(
h5A
.
keys
()
,
prefix
=
""
)
for
c
in
chiavi
:
bA
=
h5A
[
c
][
"barix"
].
value
+
h5A
[
c
][
"cornerpos"
][:][
1
]
bB
=
h5B
[
c
][
"barix"
].
value
+
h5B
[
c
][
"cornerpos"
][:][
1
]
...
...
@@ -1033,7 +1033,7 @@ def loadscan_2Dimages(mydata):
h5f
=
h5py
.
File
(
recenterings_filename
,
"r"
)
h5
=
h5f
[
recenterings_groupname
]
recenterings
=
{}
chiavi
=
filterRoiList
(
h5
.
keys
())
chiavi
=
filterRoiList
(
h5
.
keys
()
,
prefix
=
""
)
for
c
in
chiavi
:
recenterings
[
int
(
c
)]
=
h5
[
c
][:]
if
recenterings
[
int
(
c
)].
shape
==
(
2
,
2
):
...
...
@@ -1103,7 +1103,9 @@ def loadscan_2Dimages(mydata):
h5f
=
h5py
.
File
(
recenterings_confirmed_filename
,
"w"
)
h5
=
h5f
.
require_group
(
recenterings_confirmed_groupname
)
for
c
in
chiavi
:
h5
[
c
]
=
reader
.
recenterings
[
int
(
c
)]
if
c
in
h5
:
del
h5
[
c
]
h5
[
c
]
=
reader
.
recenterings
[
int
(
c
)][()]
h5f
.
flush
()
h5f
.
close
()
h5f
=
None
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment