NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

nicer __str__ for gridded.Dataset #29

Open ChrisBarker-NOAA opened 6 years ago

ChrisBarker-NOAA commented 6 years ago

you really should get something nicer than:

<gridded.gridded.Dataset instance at 0x117521f80>

ChrisBarker-NOAA commented 5 years ago

Meanwhile, i have added a bunch of .info properties to many of the objects:

SGrid, UGrid, Time, Variable

Maybe they should jsut be the __str__?

ChrisBarker-NOAA commented 5 years ago

Hmm -- I don't think str should be .info:

str should have a bit of info about the object, but not too much -- it's what peopel get when they do: print(something).

Currently, .info dumps too much -- particularly for the Dataset Object.