diff --git a/.bumpversion.toml b/.bumpversion.toml index b0109fd..b5f2fb9 100644 --- a/.bumpversion.toml +++ b/.bumpversion.toml @@ -1,5 +1,5 @@ [tool.bumpversion] -current_version = "v0.6.2" +current_version = "v0.6.3" commit = true commit_args = "--no-verify" tag = true diff --git a/README.md b/README.md index 8363d46..1b4b1e6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # totypes - Custom types for topology optimization -`v0.6.2` +`v0.6.3` ## Overview diff --git a/pyproject.toml b/pyproject.toml index 72683f5..06ca471 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "totypes" -version = "v0.6.2" +version = "v0.6.3" description = "Custom datatypes useful in a topology optimization context" keywords = ["topology", "optimization", "jax", "inverse design"] readme = "README.md" diff --git a/src/totypes/__init__.py b/src/totypes/__init__.py index 44359ff..2400235 100644 --- a/src/totypes/__init__.py +++ b/src/totypes/__init__.py @@ -3,7 +3,7 @@ Copyright (c) 2023 The INVRS-IO authors. """ -__version__ = "v0.6.2" +__version__ = "v0.6.3" __author__ = "Martin F. Schubert " __all__ = ["json_utils", "symmetry", "types"] diff --git a/src/totypes/types.py b/src/totypes/types.py index 4feade4..f17c57e 100644 --- a/src/totypes/types.py +++ b/src/totypes/types.py @@ -66,9 +66,9 @@ def __post_init__(self) -> None: ) if self.upper_bound is not None and self.lower_bound is not None: - invalid_bounds = self.lower_bound >= self.upper_bound - is_array = isinstance(invalid_bounds, (jnp.ndarray, onp.ndarray)) with jax.ensure_compile_time_eval(): + invalid_bounds = self.lower_bound >= self.upper_bound + is_array = isinstance(invalid_bounds, (jnp.ndarray, onp.ndarray)) if ( is_array and invalid_bounds.any() # type: ignore[union-attr]