Skip to content

Commit

Permalink
satisfy mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Nov 3, 2023
1 parent 0013369 commit d0411e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dilax/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Parameter(eqx.Module):
def __init__(
self,
value: jax.Array,
bounds: tuple[jax.Array, jax.Array] = (-jnp.inf, jnp.inf),
bounds: tuple[jax.Array, jax.Array] = (as1darray(-jnp.inf), as1darray(jnp.inf)),
) -> None:
self.value = value
self.bounds = bounds
Expand Down Expand Up @@ -223,7 +223,7 @@ def __init__(
def scale_factor(self, sumw: jax.Array) -> jax.Array:
return self.effect.scale_factor(parameter=self.parameter, sumw=sumw)

def __call__(self, sumw: jax.Array) -> tuple[jax.Array, jax.Array]:
def __call__(self, sumw: jax.Array) -> jax.Array:
return jnp.atleast_1d(self.scale_factor(sumw=sumw)) * sumw


Expand Down

0 comments on commit d0411e0

Please sign in to comment.