Skip to content

some v4 patches#589

Merged
TysonRayJones merged 5 commits intodevelfrom
v4-patches
Apr 22, 2025
Merged

some v4 patches#589
TysonRayJones merged 5 commits intodevelfrom
v4-patches

Conversation

@TysonRayJones
Copy link
Member

No description provided.

which...
- segfaulted when setMaxNumReportedItems(1,1) was called
- printed one more bottom/right quadrant item (rather than top/left) when setMaxNumReportedItems(odd,odd)

This patch re-prioritises the top/left items (more intuitive to the user), printing the very first item when setMaxNumReportedItems(1,1). Note an insignificant bug remains in that case; ellipsis isn't printed. See issue #588
Previously, reportScalar(..., qreal) would ignore the user's significant figures as set by setMaxNumReportedSigFigs. This was because the routine invoked the templated printer_toStr() as defined in the printer.hpp header. Now, a qreal-specific printer_toStr overload is defined in printer.cpp source which considers sig-figs.
Previously, when the user set setNumReportedNewlines(0), validly called a single-line reporter (like reportPauliStr) but then invoked a validation error, the error message would begin on the same line as the previous output, causing visual confusion/noise.

Now, the default validation error message  begins with a newline so "half-printed lines" get interrupted before the message.
@github-actions
Copy link

LCOV of commit 420e11d during audit #188

Summary coverage rate:
  lines......: 63.0% (4640 of 7369 lines)
  functions..: 58.2% (1087 of 1869 functions)
  branches...: no data found

Files changed coverage rate: n/a

@TysonRayJones TysonRayJones merged commit 3279c45 into devel Apr 22, 2025
130 checks passed
@TysonRayJones TysonRayJones deleted the v4-patches branch April 22, 2025 09:45
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