Skip to content

Fix spectro data from file split#346

Merged
Gautzilla merged 3 commits intoProject-OSmOSE:mainfrom
Gautzilla:fix-SpectroData-from-file-split
Mar 11, 2026
Merged

Fix spectro data from file split#346
Gautzilla merged 3 commits intoProject-OSmOSE:mainfrom
Gautzilla:fix-SpectroData-from-file-split

Conversation

@Gautzilla
Copy link
Contributor

🐳 Sup?

There was a (well, actually two) bug with splitting a SpectroData that was parsed from files : it tried to split its linked AudioData, which didn't exist.

Now, splitting a SpectroData that has associated files works in the same way as the BaseData says: through SpectroData._make_split_data(), which was originally left abstract.

It highlighted another bug in the SpectroFile.read() method, where a bin was included if it included either the begin or end timestamp: bins were duplicated during the split data concatenation.

Everything should work fine now!

QuinquinCarpentierGIF (2)

@Gautzilla Gautzilla self-assigned this Mar 11, 2026
@Gautzilla Gautzilla added the bug Something isn't working label Mar 11, 2026
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 98.788% (+0.005%) from 98.783%
when pulling d151317 on Gautzilla:fix-SpectroData-from-file-split
into 77b34ce on Project-OSmOSE:main.

Copy link
Member

@ElodieENSTA ElodieENSTA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The split method now works when no AudioData exists! 😄

@Gautzilla Gautzilla merged commit 184a36d into Project-OSmOSE:main Mar 11, 2026
2 checks passed
@Gautzilla Gautzilla deleted the fix-SpectroData-from-file-split branch March 11, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants