Skip to content

Conversation

tylerflex
Copy link
Collaborator

Previously, we defined td.inf to point to a LARGE_NUMBER defined in components/constants.py. This got the job done but had a few downsides:

  • Was not explicit in the data files whether a number was just large or was supposed to be infinite.
  • Needed to still be careful we got expected behavior if comparing this with another number that happened to be large (like frequencies in Hz).

This PR sets td.inf = np.inf, which seems to write to json fine.
The visualizations also render correctly.

I had to add a @staticmenthod in Geometry to evaluate the infinity values as LARGE_NUMBER in before setting axes limits as matplotlib could not handle this.

Everything else should be good to go.

@tylerflex tylerflex merged commit 9c9be29 into develop Feb 17, 2022
@tylerflex tylerflex deleted the tyler/inf branch March 25, 2022 02:00
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.

1 participant