Skip to content

Commit

Permalink
fix random_crosses typing
Browse files Browse the repository at this point in the history
  • Loading branch information
younik committed Jan 8, 2024
1 parent 5d01c91 commit 1e9e912
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chromax/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging
import random
from pathlib import Path
from typing import Callable, List, Optional, Union
from typing import Callable, List, Optional, Tuple, Union

import jax
import jax.numpy as jnp
Expand Down Expand Up @@ -361,7 +361,7 @@ def _diallel_indices(self, indices: Int[Array, "n"]) -> Int[Array, "n*(n-1)/2"]:

def random_crosses(
self, population: Population["n"], n_crosses: int, n_offspring: int = 1
) -> Population["n_crosses n_offspring"]:
) -> Tuple[Population["n_crosses n_offspring"], Int[Array, "n_crosses 2"]]:
"""Computes random crosses on a population.
:param population: input population of shape (n, m, d).
Expand Down

0 comments on commit 1e9e912

Please sign in to comment.