AI4S2S / s2spy

A high-level python package integrating expert knowledge and artificial intelligence to boost (sub) seasonal forecasting
https://ai4s2s.readthedocs.io/
Apache License 2.0
20 stars 7 forks source link

`mark_target_period` applied to the calendar view #42

Closed geek-yang closed 2 years ago

geek-yang commented 2 years ago

Currently the implementation of mark_target_period is called in the resample function and it only shows in the resampled data (see #40). But as a user, when initializing the adventcalendar and providing the n_target argument, it is good to have the target period mark in the calendar view after assigning years to the calendar.

We could add the target label as an extra column names to the calendar view.

geek-yang commented 2 years ago

We could do this by just modify the __repr__ function, since it is only meant for visual and not necessary to carry the information along the way.