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
XRD
darfix
Commits
799b5b65
Commit
799b5b65
authored
Jun 04, 2021
by
Julia Garriga Ferrer
Browse files
[core][dataset] Use flattened array of data when obtaining metadata
parent
254bb9b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
darfix/core/dataset.py
View file @
799b5b65
...
...
@@ -406,7 +406,7 @@ class Dataset():
def
get_metadata_values
(
self
,
kind
,
key
):
return
numpy
.
unique
([
data
.
get_value
(
kind
=
kind
,
name
=
key
)[
0
]
for
data
in
self
.
data
.
metadata
])
in
self
.
get_
data
()
.
metadata
])
def
__compute_changing_value
(
self
,
values
,
changing_value
=
1
):
"""
...
...
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