Skip to content
Snippets Groups Projects
Commit 31a0a3cb authored by Philipp Schmidt's avatar Philipp Schmidt
Browse files

Write correct tableSize attribute on index groups for new sequences

parent b7096837
No related branches found
No related tags found
No related merge requests found
...@@ -211,6 +211,12 @@ class SourceDataWriter: ...@@ -211,6 +211,12 @@ class SourceDataWriter:
for path, attrs in attrs.items(): for path, attrs in attrs.items():
source.key[path].attrs.update(attrs) source.key[path].attrs.update(attrs)
# Update tableSize for each index group to the correct
# number of trains.
for index_group in sd.index_groups:
source[index_group].attrs['tableSize'] = sd.data_counts(
labelled=False, index_group=index_group).sum()
# Copy INSTRUMENT data. # Copy INSTRUMENT data.
for sd in sources: for sd in sources:
source = f.source[sd.source] source = f.source[sd.source]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment