Skip to content

Commit b587ba3

Browse files
committed
formating
1 parent b95b1fa commit b587ba3

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

src/torchlensmaker/core/sag_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import torch
22
import torch.nn as nn
33

4-
from typing import TypeAlias, Any, List
4+
from typing import TypeAlias, Any
55

66
Tensor: TypeAlias = torch.Tensor
77

src/torchlensmaker/core/surfaces.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -566,17 +566,16 @@ def __init__(
566566
assert coefficients.dtype == dtype
567567
assert coefficients.dim() == 1
568568

569-
R_tensor = to_tensor(1./R, default_dtype=dtype)
569+
R_tensor = to_tensor(1.0 / R, default_dtype=dtype)
570570
K_tensor = to_tensor(K, default_dtype=dtype)
571571
coefficients_tensor = to_tensor(coefficients, default_dtype=dtype)
572572

573-
sag_function = SagSum([
574-
Conical(R_tensor, K_tensor),
575-
Aspheric(coefficients_tensor)
576-
])
573+
sag_function = SagSum(
574+
[Conical(R_tensor, K_tensor), Aspheric(coefficients_tensor)]
575+
)
577576

578577
super().__init__(diameter, sag_function, collision_method, dtype)
579-
578+
580579

581580
class SphereR(LocalSurface):
582581
"""

src/torchlensmaker/viewer/tlmviewer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from torchlensmaker.core.surfaces import (
3232
LocalSurface,
3333
ImplicitSurface,
34-
Plane,
3534
)
3635

3736
from torchlensmaker.core.transforms import (

0 commit comments

Comments
 (0)