Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jokasimr committed Oct 15, 2024
1 parent 543b3e9 commit 2951e32
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/scippnexus/nxdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,16 +486,9 @@ def __init__(self, attrs: dict[str, Any], children: dict[str, Field | Group]):
attrs=attrs,
children=children,
fallback_dims=('time',),
fallback_signal_name='value',
fallback_signal_name='value' if 'value' in children else 'time',
)

def _init_signal(self, *args, children, **kwargs):
super()._init_signal(*args, children=children, **kwargs)
if self._signal is None:
if 'time' in children:
self._signal_name = 'time'
self._signal = children['time']

def read_children(self, sel: ScippIndex) -> sc.DataGroup:
# Sublogs have distinct time axes (with a different length). Must disable
# positional indexing.
Expand Down

0 comments on commit 2951e32

Please sign in to comment.