Skip to content

Conversation

@Gautzilla
Copy link
Contributor

This PR is a small fix for LTASDataset serialization/deserialization:

When I added the embed_sft parameter to the SpectroData.to_dict() method, I apparently forgot to use it in the LTASData (en then LTASDataset) serialization.

The aim is to export each sft only once (since I can't serialize the window without exporting every value, it makes quite large JSONs if one SFT is serialized per Data object), with a ref within the serialized sft towards each associated SpectroData (or LTASData).

it should fix #285 too, as now the LTASData are properly deserialized when the sft is specified as parameter.

@Gautzilla Gautzilla requested a review from mathieudpnt January 13, 2026 09:37
@Gautzilla Gautzilla self-assigned this Jan 13, 2026
@Gautzilla Gautzilla added the bug Something isn't working label Jan 13, 2026
@Gautzilla Gautzilla merged commit 16da24c into Project-OSmOSE:main Jan 13, 2026
2 checks passed
@Gautzilla Gautzilla deleted the ltas-sft-serialization branch January 13, 2026 13:19
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.

Error loading public Dataset from JSON after LTAS analysis

2 participants