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
kmap
xsocs
Commits
aa550cc9
Commit
aa550cc9
authored
Nov 21, 2018
by
Thomas Vincent
Browse files
clean-up
parent
6a8be954
Changes
1
Hide whitespace changes
Inline
Side-by-side
xsocs/io/FitH5.py
View file @
aa550cc9
...
...
@@ -95,9 +95,6 @@ class FitH5(XsocsH5Base):
:rtype: List[str]
"""
with
self
.
_get_file
()
as
h5_file
:
# TODO : this isnt pretty but for some reason the attrs.get() fails
# when there is no attribute NX_class (should return the default
# None)
return
sorted
(
_find_NX_class
(
h5_file
,
'NXentry'
))
def
processes
(
self
,
entry
):
...
...
@@ -310,7 +307,7 @@ class FitH5Writer(FitH5):
entry_grp
=
h5_file
.
require_group
(
entry
)
entry_grp
.
attrs
[
'NX_class'
]
=
str_to_h5_utf8
(
'NXentry'
)
def
create_process
(
self
,
process
):
def
create_process
(
self
,
process
):
"""Create group to store a process in entry
:param str process:
...
...
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