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 CHANGED
@@ -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.2"
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
 
@@ -28,7 +28,7 @@ class PixelLatents(base.LatentsBase):
28
28
  tree_util.register_dataclass(
29
29
  PixelParams,
30
30
  data_fields=["latents"],
31
- meta_fields=[],
31
+ meta_fields=["metadata"],
32
32
  )
33
33
  tree_util.register_dataclass(
34
34
  PixelLatents,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: invrs_opt
3
- Version: 0.9.0
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.0`
536
+ `v0.9.2`
537
537
 
538
538
  ## Overview
539
539
 
@@ -1,4 +1,4 @@
1
- invrs_opt/__init__.py,sha256=LkjQEBq5HYuP2WgS265RPBoIe48tcG4dxGfMxPOXa68,585
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=N10UeezN4LdrlACxTEfJgJfhqh79zhUAY8XiSYvFYRY,24865
14
- invrs_opt/parameterization/pixel.py,sha256=CCSuWF_bDebwmwTG33vmZwmvZoDJXYAR1kCrz4KnLt8,1607
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.0.dist-info/LICENSE,sha256=IMF9i4xIpgCADf0U-V1cuf9HBmqWQd3qtI3FSuyW4zE,26526
17
- invrs_opt-0.9.0.dist-info/METADATA,sha256=qS0kFxxwAsfBW1igDyJHel8xFDsQQWCiUh7f1QRRGEs,32633
18
- invrs_opt-0.9.0.dist-info/WHEEL,sha256=HiCZjzuy6Dw0hdX5R3LCFPDmFS4BWl8H-8W39XfmgX4,91
19
- invrs_opt-0.9.0.dist-info/top_level.txt,sha256=hOziS2uJ_NgwaW9yhtOfeuYnm1X7vobPBcp_6eVWKfM,10
20
- invrs_opt-0.9.0.dist-info/RECORD,,
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (74.1.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5