Skip to content

Commit

Permalink
ruff --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Feb 24, 2024
1 parent fc71410 commit 3670b81
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion examples/kalman/models/car_kf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env python3

import math
from typing import List

import numpy as np
import sympy as sp
Expand Down
1 change: 0 additions & 1 deletion examples/kalman/models/gnss_kf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
from typing import List

import numpy as np
import sympy as sp
Expand Down
2 changes: 1 addition & 1 deletion laika/astro_dog.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from collections import defaultdict
from concurrent.futures import ThreadPoolExecutor
from typing import DefaultDict, Dict, List, Optional, Union
from typing import DefaultDict
from collections.abc import Iterable

from .constants import SECS_IN_DAY, SECS_IN_HR
Expand Down
1 change: 0 additions & 1 deletion laika/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pycurl
import re
import time
import socket
import logging

from datetime import datetime, timedelta
Expand Down
1 change: 0 additions & 1 deletion laika/ephemeris.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from abc import ABC, abstractmethod
from collections import defaultdict
from enum import IntEnum
from typing import Dict, List, Optional

import numpy as np
import numpy.polynomial.polynomial as poly
Expand Down
1 change: 0 additions & 1 deletion laika/helpers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from enum import IntEnum
from typing import Dict

import numpy as np
from .lib.coordinates import LocalCoord
Expand Down
1 change: 0 additions & 1 deletion laika/opt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import sympy
import numpy as np
from typing import List

from .constants import EARTH_ROTATION_RATE, SPEED_OF_LIGHT
from .helpers import ConstellationId
Expand Down
1 change: 0 additions & 1 deletion laika/raw_gnss.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from math import sqrt
from typing import Dict, List, Optional, Union

import numpy as np
import datetime
Expand Down
6 changes: 3 additions & 3 deletions laika/rinex_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ def _read_header(self, f):
pass

if n_obs <= 9:
for i in range(0, n_obs):
for i in range(n_obs):
self.obs_types.append(line[10 + 6 * i:12 + 6 * i])
if n_obs > 9:
for i in range(0, 9):
for i in range(9):
self.obs_types.append(line[10 + 6 * i:12 + 6 * i])
n_obs -= 9

Expand Down Expand Up @@ -149,7 +149,7 @@ def _read_epoch_header(self, f):
return None

sats = []
for i in range(0, n_sats):
for i in range(n_sats):
if ((i % 12) == 0) and (i > 0):
epoch_hdr = f.readline()
sats.append(epoch_hdr[(32 + (i % 12) * 3):(35 + (i % 12) * 3)])
Expand Down

0 comments on commit 3670b81

Please sign in to comment.