Skip to content

Conversation

henrikjacobsenfys
Copy link
Member

Closes #59

@henrikjacobsenfys henrikjacobsenfys added the [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) label Jul 9, 2025
@henrikjacobsenfys henrikjacobsenfys changed the base branch from master to develop July 9, 2025 12:38
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['chore', 'fix', 'bugfix', 'bug', 'enhancement', 'feature', 'dependencies', 'documentation']

@henrikjacobsenfys henrikjacobsenfys added the chore PR label label Jul 9, 2025
string += f'{self._scalar.value:.4f}'
if self.variance:
string += f' \u00b1 {self.error:.4f}'
if np.abs(self._scalar.value)>1e4 or (np.abs(self._scalar.value)<1e-4 and np.abs(self._scalar.value)>0):
Copy link
Contributor

Choose a reason for hiding this comment

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

You can get rid of the 2nd np.abs and just check if _scalar.value == 0.

@henrikjacobsenfys henrikjacobsenfys merged commit abb34d2 into develop Jul 18, 2025
34 checks passed
@henrikjacobsenfys henrikjacobsenfys deleted the improve_descriptor_repr branch July 18, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore PR label [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve presentation of very small and very large Parameters/DescriptorNumbers
2 participants