Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix display of types in TimeStepTable #24

Closed
VEZY opened this issue Apr 24, 2023 · 0 comments
Closed

Fix display of types in TimeStepTable #24

VEZY opened this issue Apr 24, 2023 · 0 comments

Comments

@VEZY
Copy link
Member

VEZY commented Apr 24, 2023

At the moment, we can get an Int printed as a Float64:

TimeStepTable([(a= 1, b = 2.0),])

The issue comes from the fact that values from the TimeStepTable are all promoted to the same type when printing, because we tranform the row into a matrix:

t_mat = Tables.matrix(t)

We should prefer iterating over rows of named tuples instead, si we could keep the types of our values.

@VEZY VEZY closed this as completed in b1ced94 Apr 24, 2023
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

No branches or pull requests

1 participant