LinkedEarth / Pyleoclim_util

Python Package for the Analysis of Paleoclimate Data. Documentation at
https://pyleoclim-util.readthedocs.io
GNU General Public License v3.0
87 stars 33 forks source link

EnsembleSeries __repr__ method #574

Closed CommonClimate closed 2 months ago

CommonClimate commented 3 months ago

It's currently very difficult to peruse the contents of an EnsembleSeries object, and it doesn't need to be.

Currently, the __repr__ method (inherited from MultipleSeries) yields this when printing in a Jupyter Notebook:

Screenshot 2024-06-06 at 13 48 35

this is wrong, as this particular ensemble includes 1,000 members.

Proposed Solution: EnsembleSeries needs its custom __repr__ method, which would give the number of series and the number of rows, as well as the label

CommonClimate commented 2 months ago

addressed by #591