invrs-opt 0.9.0__tar.gz → 0.9.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/PKG-INFO +2 -2
  2. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/README.md +1 -1
  3. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/pyproject.toml +1 -1
  4. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/__init__.py +1 -1
  5. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/gaussian_levelset.py +3 -12
  6. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt.egg-info/PKG-INFO +2 -2
  7. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/LICENSE +0 -0
  8. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/setup.cfg +0 -0
  9. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/experimental/__init__.py +0 -0
  10. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/experimental/client.py +0 -0
  11. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/experimental/labels.py +0 -0
  12. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/optimizers/__init__.py +0 -0
  13. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/optimizers/base.py +0 -0
  14. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/optimizers/lbfgsb.py +0 -0
  15. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/optimizers/wrapped_optax.py +0 -0
  16. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/__init__.py +0 -0
  17. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/base.py +0 -0
  18. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/filter_project.py +0 -0
  19. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/pixel.py +0 -0
  20. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/parameterization/transforms.py +0 -0
  21. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt/py.typed +0 -0
  22. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt.egg-info/SOURCES.txt +0 -0
  23. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt.egg-info/dependency_links.txt +0 -0
  24. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt.egg-info/requires.txt +0 -0
  25. {invrs_opt-0.9.0 → invrs_opt-0.9.1}/src/invrs_opt.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invrs_opt
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Algorithms for inverse design
5
5
  Author-email: "Martin F. Schubert" <mfschubert@gmail.com>
6
6
  Maintainer-email: "Martin F. Schubert" <mfschubert@gmail.com>
@@ -533,7 +533,7 @@ Requires-Dist: mypy; extra == "dev"
533
533
  Requires-Dist: pre-commit; extra == "dev"
534
534
 
535
535
  # invrs-opt - Optimization algorithms for inverse design
536
- `v0.9.0`
536
+ `v0.9.1`
537
537
 
538
538
  ## Overview
539
539
 
@@ -1,5 +1,5 @@
1
1
  # invrs-opt - Optimization algorithms for inverse design
2
- `v0.9.0`
2
+ `v0.9.1`
3
3
 
4
4
  ## Overview
5
5
 
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
 
3
3
  name = "invrs_opt"
4
- version = "v0.9.0"
4
+ version = "v0.9.1"
5
5
  description = "Algorithms for inverse design"
6
6
  keywords = ["topology", "optimization", "jax", "inverse design"]
7
7
  readme = "README.md"
@@ -3,7 +3,7 @@
3
3
  Copyright (c) 2023 The INVRS-IO authors.
4
4
  """
5
5
 
6
- __version__ = "v0.9.0"
6
+ __version__ = "v0.9.1"
7
7
  __author__ = "Martin F. Schubert <mfschubert@gmail.com>"
8
8
 
9
9
  from invrs_opt import parameterization as parameterization
@@ -88,11 +88,9 @@ tree_util.register_dataclass(
88
88
  data_fields=[
89
89
  "length_scale_spacing_factor",
90
90
  "length_scale_fwhm_factor",
91
- "smoothing_factor",
92
- "density_shape",
93
91
  "density_metadata",
94
92
  ],
95
- meta_fields=[],
93
+ meta_fields=["density_shape", "smoothing_factor"],
96
94
  )
97
95
  json_utils.register_custom_type(GaussianLevelsetParams)
98
96
  json_utils.register_custom_type(GaussianLevelsetLatents)
@@ -298,15 +296,8 @@ def _to_array(
298
296
  """
299
297
  example_density = _example_density(params)
300
298
  periodic: Tuple[bool, bool] = example_density.periodic
301
- phi = _phi_from_params(
302
- params=params,
303
- pad_pixels=pad_pixels,
304
- )
305
- array = _levelset_threshold(
306
- phi=phi,
307
- periodic=periodic,
308
- mask_gradient=mask_gradient,
309
- )
299
+ phi = _phi_from_params(params=params, pad_pixels=pad_pixels)
300
+ array = _levelset_threshold(phi=phi, periodic=periodic, mask_gradient=mask_gradient)
310
301
  return _downsample_spatial_dims(array, params.metadata.smoothing_factor)
311
302
 
312
303
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invrs_opt
3
- Version: 0.9.0
3
+ Version: 0.9.1
4
4
  Summary: Algorithms for inverse design
5
5
  Author-email: "Martin F. Schubert" <mfschubert@gmail.com>
6
6
  Maintainer-email: "Martin F. Schubert" <mfschubert@gmail.com>
@@ -533,7 +533,7 @@ Requires-Dist: mypy; extra == "dev"
533
533
  Requires-Dist: pre-commit; extra == "dev"
534
534
 
535
535
  # invrs-opt - Optimization algorithms for inverse design
536
- `v0.9.0`
536
+ `v0.9.1`
537
537
 
538
538
  ## Overview
539
539
 
File without changes
File without changes