Skip to content

MOCPY: TimeMOC.min_time / TimeMOC.max_time and computation of s_index #214

@TOCode11

Description

@TOCode11

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions