I had some issues with running docs/examples/plt_TMOC_SDSS_r.py. After investigation, the root of the problem seems to be related to properties TimeMOC.min_time and TimeMOC.max_time of class TimeMOC. Those properties return a type ndarray. This seems to mess with computation of s_index which tries to convert an ndarray to int (s_index = int((s_time_us.jd - min_jd_time) / delta)). The squeeze function of numpy could be used here but I'm unsure if edge cases would lead to min_jd_time or delta being ndarrays of more than a single element. Return values of properties TimeMOC.min_time and TimeMOC.max_time might also need to be modified. Let me know if I'm missing something.
I had some issues with running docs/examples/plt_TMOC_SDSS_r.py. After investigation, the root of the problem seems to be related to properties TimeMOC.min_time and TimeMOC.max_time of class TimeMOC. Those properties return a type ndarray. This seems to mess with computation of s_index which tries to convert an ndarray to int (s_index = int((s_time_us.jd - min_jd_time) / delta)). The squeeze function of numpy could be used here but I'm unsure if edge cases would lead to min_jd_time or delta being ndarrays of more than a single element. Return values of properties TimeMOC.min_time and TimeMOC.max_time might also need to be modified. Let me know if I'm missing something.