Skip to content

Conversation

@stes
Copy link
Member

@stes stes commented Oct 27, 2024

PRs #166 and #180 did some changes to the TensorDataset class without adding tests. This PR adds such tests to cover the basic functionality (type checking, init of the dataset, accessing the data and reproducing the issue described in #174 ).

This brought two minor errors to light which are also fixed in the PR (typo in self._to_tensor(discrete, check_dtype="integer"), wrong docstring, exception handling.

@stes stes requested a review from MMathisLab October 27, 2024 13:43
@stes stes self-assigned this Oct 27, 2024
@cla-bot cla-bot bot added the CLA signed label Oct 27, 2024
@stes
Copy link
Member Author

stes commented Oct 27, 2024

Ok, funny edge case, good we are running windows tests
image

int32 vs int64 defaults are handled differently on windows, will add that explicitly then.

@stes stes merged commit e652b9a into main Oct 27, 2024
@stes stes deleted the stes/add-dataset-tests branch October 27, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants