Skip to content

Commit 59fd845

Browse files
committed
forgot to pytest, fix bugs
1 parent 795a6c1 commit 59fd845

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

equilib/cube2equi/cube2equi_torch/cube2equi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _equirect_facetype(self, h: int, w: int) -> torch.Tensor:
9595

9696
return tp.type(torch.int32)
9797

98-
def create_equi_grid(self, h_out: int, w_out: int) -> Tuple(torch.Tensor):
98+
def create_equi_grid(self, h_out: int, w_out: int) -> Tuple[torch.Tensor]:
9999
_dtype = torch.float32
100100
theta = torch.linspace(-math.pi, math.pi, steps=w_out, dtype=_dtype)
101101
phi = torch.linspace(math.pi, -math.pi, steps=h_out, dtype=_dtype) / 2

equilib/equi2cube/equi2cube_numpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def cube_h2list(cube_h: np.ndarray) -> List[np.ndarray]:
5353
return np.split(cube_h, 6, axis=-1)
5454

5555

56-
def cube_h2dict(cube_h: np.ndarray) -> Dict[np.ndarray]:
56+
def cube_h2dict(cube_h: np.ndarray) -> Dict[str, np.ndarray]:
5757
cube_list = cube_h2list(cube_h)
5858
return dict(
5959
[

equilib/equi2cube/equi2cube_torch/equi2cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def run(
109109
torch.Tensor,
110110
List[torch.Tensor],
111111
List[Dict[str, torch.Tensor]],
112-
Dict[torch.Tensor],
112+
Dict[str, torch.Tensor],
113113
]:
114114
r"""Call Equi2Cube
115115

0 commit comments

Comments
 (0)