{"record":{"id":"36102f0b06f53dc0","repo":"matplotlib/matplotlib","slug":"invalid-inputs-must-enter-sec-and-jd-together-d","errorCode":null,"errorMessage":"Invalid inputs.  Must enter sec and jd together, daynum by itself, or dt (must be a python datetime).\\nSec = %s\\nJD  = %s\\ndnum= %s\\ndt  = %s","messagePattern":"Invalid inputs\\.  Must enter sec and jd together, daynum by itself, or dt \\(must be a python datetime\\)\\.\\\\nSec = (.+?)\\\\nJD  = (.+?)\\\\ndnum= (.+?)\\\\ndt  = (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"lib/matplotlib/testing/jpl_units/Epoch.py","lineNumber":55,"sourceCode":"        - If the input units are not in the allowed list, an error is thrown.\n\n        = INPUT VARIABLES\n        - frame     The frame of the epoch.  Must be 'ET' or 'UTC'\n        - sec        The number of seconds past the input JD.\n        - jd         The Julian date of the epoch.\n        - daynum    The matplotlib day number of the epoch.\n        - dt         A python datetime instance.\n        \"\"\"\n        if ((sec is None and jd is not None) or\n                (sec is not None and jd is None) or\n                (daynum is not None and\n                 (sec is not None or jd is not None)) or\n                (daynum is None and dt is None and\n                 (sec is None or jd is None)) or\n                (daynum is not None and dt is not None) or\n                (dt is not None and (sec is not None or jd is not None)) or\n                ((dt is not None) and not isinstance(dt, DT.datetime))):\n            raise ValueError(\n                \"Invalid inputs.  Must enter sec and jd together, \"\n                \"daynum by itself, or dt (must be a python datetime).\\n\"\n                \"Sec = %s\\n\"\n                \"JD  = %s\\n\"\n                \"dnum= %s\\n\"\n                \"dt  = %s\" % (sec, jd, daynum, dt))\n\n        _api.check_in_list(self.allowed, frame=frame)\n        self._frame = frame\n\n        if dt is not None:\n            daynum = date2num(dt)\n\n        if daynum is not None:\n            # 1-JAN-0001 in JD = 1721425.5\n            jd = float(daynum) + 1721425.5\n            self._jd = math.floor(jd)\n            self._seconds = (jd - self._jd) * 86400.0","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/matplotlib/matplotlib/blob/b379c1b69e012b142c0f496a52bcb30513802d72/lib/matplotlib/testing/jpl_units/Epoch.py#L37-L73","documentation":"Error \"Invalid inputs.  Must enter sec and jd together, daynum by itself, or dt (must be a python datetime).\\nSec = %s\\nJD  = %s\\ndnum= %s\\ndt  = %s\" thrown in matplotlib/matplotlib.","triggerScenarios":"Thrown at lib/matplotlib/testing/jpl_units/Epoch.py:55 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b379c1b69e012b142c0f496a52bcb30513802d72","analyzedAt":"2026-08-21T23:31:55.468Z","schemaVersion":2},"datasetVersion":"2026-08-22T04:17:13.399Z"}