JuliaDynamics / ComplexityMeasures.jl

Estimators for probabilities, entropies, and other complexity measures derived from data in the context of nonlinear dynamics and complex systems
MIT License
48 stars 11 forks source link

Nicer default printing #381

Closed kahaaga closed 5 months ago

kahaaga commented 5 months ago

Fixes #286.

Introduces:

Formatting

Approach

To ensure pretty printing is defined for all our types, we loop over our_abstract_types, and use @eval to override two Base methods:

Skjermbilde 2024-01-13 kl  12 56 52
codecov[bot] commented 5 months ago

Codecov Report

Attention: 24 lines in your changes are missing coverage. Please review.

Comparison is base (c82bc30) 89.29% compared to head (457cb36) 88.68%.

:exclamation: Current head 457cb36 differs from pull request most recent head 3467647. Consider uploading reports for the commit 3467647 to get more accurate results

Files Patch % Lines
src/core/pretty_printing.jl 70.88% 23 Missing :warning:
src/encoding_implementations/ordinal_pattern.jl 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #381 +/- ## ========================================== - Coverage 89.29% 88.68% -0.62% ========================================== Files 79 80 +1 Lines 2271 2359 +88 ========================================== + Hits 2028 2092 +64 - Misses 243 267 +24 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.