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 zero division handling in normalize_trans_probs (which breaks to_hdf) #2469

Closed
wants to merge 3 commits into from

Conversation

chvogl
Copy link
Contributor

@chvogl chvogl commented Nov 10, 2023

📝 Description

Type: 🪲 bugfix
Currently, normalize_trans_probs performs multiple data type conversions to deal with zero divisions. The last conversion (with convert_dtypes) yields a DataFrame with an object array that breaks the to_hdf method. This PR aims to implement a simplified treatment for zero divisions that avoids this problem. However, it currently doesn't work for all atom data files for some reason.

📌 Resources

Examples, notebooks, and links to useful references.

🚦 Testing

How did you test these changes?

  • Testing pipeline
  • Other method (describe)
  • My changes can't be tested (explain why)

☑️ Checklist

  • I requested two reviewers for this pull request
  • I updated the documentation according to my changes
  • I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

@chvogl chvogl marked this pull request as draft November 10, 2023 17:29
@chvogl chvogl force-pushed the fix-to_hdf-continuum-bug branch from ed8ea20 to a9398ed Compare November 10, 2023 20:23
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