Skip to content

Conversation

@gnzng
Copy link
Collaborator

@gnzng gnzng commented Jun 17, 2025

I just ran into that issue (see screenshot below). There is no problem in saving and handling float64 is usually not an issue, only when restoring from from_cxi. So I made the following adjustments to transform them to t.float32 upon loading with issuing a warning instead of an error.

Pasted image 20250617101438

I also reordered the imports for the 2 file I touched.

All tests are passing.

Copy link
Collaborator

@yoshikisd yoshikisd left a comment

Choose a reason for hiding this comment

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

These changes look great! Pytests work on my machine.

I only have one suggestion on the warning message. Other than that I'd be happy to approve and merge this change after I hear back about your thoughts on the suggestion.

Copy link
Collaborator

@yoshikisd yoshikisd left a comment

Choose a reason for hiding this comment

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

Looks good to me! Let's merge this.

@yoshikisd yoshikisd merged commit b95bdba into cdtools-developers:master Jun 17, 2025
6 checks passed
@gnzng gnzng deleted the float64 branch June 17, 2025 23:28
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