diff --git a/src/wwvb/__init__.py b/src/wwvb/__init__.py index a9da879..88e3b39 100644 --- a/src/wwvb/__init__.py +++ b/src/wwvb/__init__.py @@ -727,7 +727,7 @@ class WWVBMinuteIERS(WWVBMinute): @classmethod def _get_dut1_info(cls, year: int, days: int, old_time: WWVBMinute | None = None) -> tuple[int, bool]: # noqa: ARG003 d = datetime.datetime(year, 1, 1, tzinfo=datetime.timezone.utc) + datetime.timedelta(days - 1) - return int(round(get_dut1(d) * 10)) * 100, isls(d) + return round(get_dut1(d) * 10) * 100, isls(d) def _bcd_bits(n: int) -> Generator[bool, None, None]: diff --git a/src/wwvb/updateiers.py b/src/wwvb/updateiers.py index 6e9797a..733e352 100755 --- a/src/wwvb/updateiers.py +++ b/src/wwvb/updateiers.py @@ -52,7 +52,7 @@ def update_iersdata( # noqa: PLR0915 offs_str = r["UT1-UTC"] if not offs_str: break - offs = int(round(float(offs_str) * 10)) + offs = round(float(offs_str) * 10) if not offsets: table_start = datetime.date(1858, 11, 17) + datetime.timedelta(jd) @@ -98,7 +98,7 @@ def update_iersdata( # noqa: PLR0915 cells = row.findAll("td") when = datetime.datetime.strptime(cells[0].text + "+0000", "%Y-%m-%d%z").date() dut1 = cells[2].text.replace("s", "").replace(" ", "") - dut1 = int(round(float(dut1) * 10)) + dut1 = round(float(dut1) * 10) if wwvb_dut1 is not None: assert wwvb_start is not None patch(wwvb_start, when, wwvb_dut1)