Skip to content

ts2vel: skip writing for empty blocks#624

Merged
yunjunz merged 2 commits intoinsarlab:mainfrom
olliestephenson:patch-3
Aug 2, 2021
Merged

ts2vel: skip writing for empty blocks#624
yunjunz merged 2 commits intoinsarlab:mainfrom
olliestephenson:patch-3

Conversation

@olliestephenson
Copy link
Contributor

Description of proposed changes

Fixing a minor bug - write_hdf5_block function comes from the writefile import

write_hdf5_block function comes from the writefile import
@yunjunz yunjunz self-requested a review August 2, 2021 19:00
@olliestephenson
Copy link
Contributor Author

I've realised that the write_hdf5_block function from writefile needs different arguments, so my bug fix isn't valid

@yunjunz yunjunz changed the title minor bug fix ts2vel: skip writing for empty blocks Aug 2, 2021
@yunjunz
Copy link
Member

yunjunz commented Aug 2, 2021

yeah, it is from an older version of timeseries2velocity.py which has its own layout_hdf5/write_hdf5_block(). The bug is still valid. Thank you for pointing this out.

It turns out that we don't need to write for empty blocks at all, since the file has been initiated with default values.

@yunjunz yunjunz merged commit dd9512b into insarlab:main Aug 2, 2021
@olliestephenson olliestephenson deleted the patch-3 branch January 24, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants