Skip to content

Add leap year capability to JBT #35

@cracraft

Description

@cracraft

I have code that processes large amounts of data through the JBT to track backgrounds over time, and when I ended up with an MJD that translated to day of year = 366, the line of code here: doy_ind = np.argwhere( bg.bkg_data[‘calendar’]==doy ).flatten()[0] crashed because the bkg.data['calendar']==366 produced an array of all False values. I had to add in an if statement to my code to catch that specific case and set it to 365 instead to get my code to run to completion. It sounds like the JBT doesn't know about leap years.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions