invrs-opt 0.9.0__py3-none-any.whl → 0.9.2__py3-none-any.whl
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.
- invrs_opt/__init__.py +1 -1
- invrs_opt/parameterization/gaussian_levelset.py +3 -12
- invrs_opt/parameterization/pixel.py +1 -1
- {invrs_opt-0.9.0.dist-info → invrs_opt-0.9.2.dist-info}/METADATA +2 -2
- {invrs_opt-0.9.0.dist-info → invrs_opt-0.9.2.dist-info}/RECORD +8 -8
- {invrs_opt-0.9.0.dist-info → invrs_opt-0.9.2.dist-info}/WHEEL +1 -1
- {invrs_opt-0.9.0.dist-info → invrs_opt-0.9.2.dist-info}/LICENSE +0 -0
- {invrs_opt-0.9.0.dist-info → invrs_opt-0.9.2.dist-info}/top_level.txt +0 -0
invrs_opt/__init__.py
CHANGED
@@ -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
|
-
|
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.
|
3
|
+
Version: 0.9.2
|
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: pytest-cov; extra == "tests"
|
|
533
533
|
Requires-Dist: pytest-subtests; extra == "tests"
|
534
534
|
|
535
535
|
# invrs-opt - Optimization algorithms for inverse design
|
536
|
-
`v0.9.
|
536
|
+
`v0.9.2`
|
537
537
|
|
538
538
|
## Overview
|
539
539
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
invrs_opt/__init__.py,sha256=
|
1
|
+
invrs_opt/__init__.py,sha256=KoyFNAkv9psGOf-zbhFORZI4io0O1AmGuMyCitqeLVg,585
|
2
2
|
invrs_opt/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
invrs_opt/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
invrs_opt/experimental/client.py,sha256=t4XxnditYbM9DWZeyBPj0Sa2acvkikT0ybhUdmH2r-Y,4852
|
@@ -10,11 +10,11 @@ invrs_opt/optimizers/wrapped_optax.py,sha256=VXdCteT2kumqhP81l3p6QiEqwBffoUuJ3Uj
|
|
10
10
|
invrs_opt/parameterization/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
invrs_opt/parameterization/base.py,sha256=BObzbz6efT2nBjib0_5BSdkCmFi2f0mcZ9VJYpDzO6Q,5278
|
12
12
|
invrs_opt/parameterization/filter_project.py,sha256=7Jb8JVENmBTdx3-XmI-VRm4aMjxg_Wtin8tMKKKxWvQ,4309
|
13
|
-
invrs_opt/parameterization/gaussian_levelset.py,sha256=
|
14
|
-
invrs_opt/parameterization/pixel.py,sha256=
|
13
|
+
invrs_opt/parameterization/gaussian_levelset.py,sha256=Uagx7k69SWmass0YirD5JN8O4QDbwwKTBBjRfkIXvv8,24793
|
14
|
+
invrs_opt/parameterization/pixel.py,sha256=AwC4GBNNOysdICvYHv_D2tZdqJmYiRzOUZNq_-R9Z70,1617
|
15
15
|
invrs_opt/parameterization/transforms.py,sha256=8GzaIsUuuXvMCLiqAEEfxmi9qE9KqHzbuTj_m0GjH3w,8216
|
16
|
-
invrs_opt-0.9.
|
17
|
-
invrs_opt-0.9.
|
18
|
-
invrs_opt-0.9.
|
19
|
-
invrs_opt-0.9.
|
20
|
-
invrs_opt-0.9.
|
16
|
+
invrs_opt-0.9.2.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
|
17
|
+
invrs_opt-0.9.2.dist-info/METADATA,sha256=vpWyCF9sTpxzWBqce-AESwaNmeEWBimlWPFHSIniJFk,32633
|
18
|
+
invrs_opt-0.9.2.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
19
|
+
invrs_opt-0.9.2.dist-info/top_level.txt,sha256=hOziS2uJ_NgwaW9yhtOfeuYnm1X7vobPBcp_6eVWKfM,10
|
20
|
+
invrs_opt-0.9.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|