Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor 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
calibration
pycalibration
Commits
6f4b561b
Commit
6f4b561b
authored
3 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Use posixpath to construct HDF5 paths
parent
24126e86
No related branches found
No related tags found
1 merge request
!527
HDF5 copy except function
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cal_tools/agipdlib.py
+3
-2
3 additions, 2 deletions
src/cal_tools/agipdlib.py
with
3 additions
and
2 deletions
src/cal_tools/agipdlib.py
+
3
−
2
View file @
6f4b561b
import
traceback
import
traceback
import
zlib
import
zlib
from
multiprocessing.pool
import
ThreadPool
from
multiprocessing.pool
import
ThreadPool
import
posixpath
from
pathlib
import
Path
from
pathlib
import
Path
from
typing
import
Any
,
Dict
,
Optional
,
Tuple
from
typing
import
Any
,
Dict
,
Optional
,
Tuple
...
@@ -966,11 +967,11 @@ class AgipdCorrections:
...
@@ -966,11 +967,11 @@ class AgipdCorrections:
# these are touched in the correct function, do not copy them here
# these are touched in the correct function, do not copy them here
dont_copy
=
[
"
data
"
,
"
cellId
"
,
"
trainId
"
,
"
pulseId
"
,
"
status
"
,
dont_copy
=
[
"
data
"
,
"
cellId
"
,
"
trainId
"
,
"
pulseId
"
,
"
status
"
,
"
length
"
]
"
length
"
]
dont_copy
=
[
agipd_base
.
rstrip
(
'
/
'
)
+
f
"
/image/
{
ds
}
"
dont_copy
=
[
posixpath
.
join
(
agipd_base
,
"
image
"
,
ds
)
for
ds
in
dont_copy
]
for
ds
in
dont_copy
]
# don't copy index as we may need to adjust if we filter trains
# don't copy index as we may need to adjust if we filter trains
dont_copy
.
append
(
idx_base
.
rstrip
(
'
/
'
)
+
"
image
"
)
dont_copy
.
append
(
posixpath
.
join
(
idx_base
,
"
image
"
)
)
h5_copy_except_paths
(
infile
,
outfile
,
dont_copy
)
h5_copy_except_paths
(
infile
,
outfile
,
dont_copy
)
...
...
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