brisvag / blik

Python tool for visualising and interacting with cryo-ET and subtomogram averaging data.
https://brisvag.github.io/blik/
GNU General Public License v3.0
23 stars 8 forks source link

Improved default repr #93

Closed brisvag closed 3 years ago

brisvag commented 3 years ago

This PR changes slightly the default representation (when printed) of datablocks and peeper.

When printing a peeper, now it defaults to a more verbose mode. However, the datablocks inside use short_repr. When printed individually, however, datablocks will use an extended repr. For now, Simpleblocks print their data; multiblocks should implement their own representation, and for now fall back to the short_repr.

codecov[bot] commented 3 years ago

Codecov Report

Merging #93 (f6b69bc) into develop (b4da084) will decrease coverage by 0.06%. The diff coverage is 62.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #93      +/-   ##
===========================================
- Coverage    80.18%   80.11%   -0.07%     
===========================================
  Files           91       91              
  Lines         1998     2002       +4     
===========================================
+ Hits          1602     1604       +2     
- Misses         396      398       +2     
Impacted Files Coverage Δ
peepingtom/peeper.py 71.81% <50.00%> (ø)
peepingtom/datablocks/abstractblocks/datablock.py 79.81% <66.66%> (-0.56%) :arrow_down:
...eepingtom/datablocks/abstractblocks/simpleblock.py 79.24% <66.66%> (-1.15%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b4da084...f6b69bc. Read the comment docs.