ImperialCollegeLondon / wsi

WSIMOD is a software for simulating water quality and quantity
https://imperialcollegelondon.github.io/wsi/
BSD 3-Clause "New" or "Revised" License
13 stars 2 forks source link

`to_datetime.to_period` not printable #92

Open barneydobson opened 8 months ago

barneydobson commented 8 months ago

The monthyear created by to_datetime('<a date>').to_period('M'), which is used as the keys for Surface/data_input_dict cannot be printed, I guess because __repr__ and __str__ in to_datetime are assuming Y/m/d.

It's still hashable so isn't breaking anything, but makes debugging hard.