Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
XRD
darfix
Commits
741a2764
Commit
741a2764
authored
Feb 10, 2020
by
Julia Garriga Ferrer
Browse files
[io][utils] Set inputs (plural)
parent
521598cc
Pipeline
#20982
passed with stage
in 2 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
darfix/io/utils.py
View file @
741a2764
...
...
@@ -78,7 +78,7 @@ def read_process(h5_file):
nx_entry
=
nx
[
nx
.
attrs
[
"default"
]]
# find the default NXdata group
nx_process
=
nx_entry
[
"process_1"
]
input_data
=
nx_process
[
"input"
]
input_data
=
nx_process
[
"input
s
"
]
dimensions
=
{}
for
key
in
input_data
.
keys
():
dimensions
[
key
]
=
numpy
.
array
(
list
(
input_data
[
key
]))
...
...
@@ -156,7 +156,7 @@ def write_process(h5_file, entry, dimensions, W, data, processing_order,
nx_process
[
'date'
]
=
datetime
.
now
().
replace
(
microsecond
=
0
).
isoformat
()
nx_process
[
'processing_order'
]
=
numpy
.
int32
(
processing_order
)
nx_parameters
=
nx_process
.
require_group
(
"input"
)
nx_parameters
=
nx_process
.
require_group
(
"input
s
"
)
nx_parameters
.
attrs
[
'NX_class'
]
=
"NXparameters"
nx_parameters_path
=
nx_parameters
.
name
results
=
nx_process
.
require_group
(
"results"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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