Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
est
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
workflow
ewoksapps
est
Commits
f00b43cd
Commit
f00b43cd
authored
1 month ago
by
Gilles Berruyer
Committed by
Wout De Nolf
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
saving workflows could run concurrently
parent
8ddbfcc7
No related branches found
No related tags found
1 merge request
!181
subscan splitting with known subscan size
Pipeline
#225143
passed
1 month ago
Stage: test
Stage: style
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/est/core/split_monotonic.py
+10
-2
10 additions, 2 deletions
src/est/core/split_monotonic.py
with
10 additions
and
2 deletions
src/est/core/split_monotonic.py
+
10
−
2
View file @
f00b43cd
...
...
@@ -59,7 +59,12 @@ def split_bliss_scan(
for
subscan_number
,
subscan_slice
in
enumerate
(
subscan_slices
,
1
):
out_url
=
_save_subscan
(
nxentry_in
,
scan_number
,
subscan_number
,
out_filename
,
subscan_slice
nxentry_in
,
scan_number
,
subscan_number
,
out_filename
,
subscan_slice
,
**
retry_args
,
)
out_urls
.
append
(
out_url
)
return
out_urls
...
...
@@ -80,12 +85,15 @@ def _save_subscan(
subscan_number
:
int
,
out_filename
:
str
,
subscan_slice
:
slice
,
**
retry_args
,
)
->
str
:
entry_name
=
f
"
{
scan_number
}
.
{
subscan_number
}
"
out_url
=
f
"
silx://
{
out_filename
}
::/
{
entry_name
}
"
os
.
makedirs
(
os
.
path
.
dirname
(
out_filename
),
exist_ok
=
True
)
with
h5py
.
File
(
out_filename
,
mode
=
"
a
"
,
track_order
=
True
)
as
nxroot_out
:
with
h5py_utils
.
open_item
(
out_filename
,
"
/
"
,
mode
=
"
a
"
,
track_order
=
True
,
**
retry_args
)
as
nxroot_out
:
if
entry_name
in
nxroot_out
:
_logger
.
warning
(
"
%s::/%s already exists
"
,
out_filename
,
entry_name
)
return
out_url
...
...
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