Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

feat: implement pretty reprs for particle classes#545

Merged
redeboer merged 2 commits intomasterfrom
pretty-reprs
Mar 28, 2021
Merged

feat: implement pretty reprs for particle classes#545
redeboer merged 2 commits intomasterfrom
pretty-reprs

Conversation

@redeboer
Copy link
Copy Markdown
Member

@redeboer redeboer commented Mar 28, 2021

See IPython.lib.pretty

  • Fix repr for ParticleCollection
  • Hide attribute values if they are the default
  • Indent arguments when there's limited space
  • Don't show Parity in Particle constructor (possible since feat: add Particle argument converters #544)
old new
)

@redeboer redeboer added the 💡 Feature New feature added to the package label Mar 28, 2021
@redeboer redeboer added this to the Release 0.7.2 milestone Mar 28, 2021
@redeboer redeboer self-assigned this Mar 28, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 28, 2021

Codecov Report

Merging #545 (a0c23ee) into master (1580ea2) will increase coverage by 0.11%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #545      +/-   ##
==========================================
+ Coverage   86.08%   86.19%   +0.11%     
==========================================
  Files          22       22              
  Lines        3592     3628      +36     
  Branches      878      884       +6     
==========================================
+ Hits         3092     3127      +35     
+ Misses        323      322       -1     
- Partials      177      179       +2     
Flag Coverage Δ
unittests 86.19% <86.95%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/expertsystem/particle/__init__.py 93.84% <86.66%> (+0.55%) ⬆️
src/expertsystem/io/_dot.py 74.09% <100.00%> (-0.91%) ⬇️

@redeboer redeboer added Bug Something isn't working 💡 Feature New feature added to the package and removed 💡 Feature New feature added to the package labels Mar 28, 2021
@redeboer redeboer merged commit e753853 into master Mar 28, 2021
@redeboer redeboer deleted the pretty-reprs branch March 28, 2021 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Bug Something isn't working 💡 Feature New feature added to the package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant