goad-py 0.6.0__cp38-abi3-macosx_10_12_x86_64.whl → 0.6.2__cp38-abi3-macosx_10_12_x86_64.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.
Potentially problematic release.
This version of goad-py might be problematic. Click here for more details.
goad_py/unified_convergence.py
CHANGED
|
@@ -217,11 +217,11 @@ class PHIPSMode(ConvergenceMode):
|
|
|
217
217
|
class BeamTracingConfig:
|
|
218
218
|
"""Beam tracing performance and accuracy parameters."""
|
|
219
219
|
|
|
220
|
-
beam_power_threshold: float = 0.
|
|
221
|
-
beam_area_threshold_fac: float =
|
|
222
|
-
cutoff: float = 0.
|
|
223
|
-
max_rec: int =
|
|
224
|
-
max_tir: int =
|
|
220
|
+
beam_power_threshold: float = 0.005
|
|
221
|
+
beam_area_threshold_fac: float = 0.001
|
|
222
|
+
cutoff: float = 0.999
|
|
223
|
+
max_rec: int = 10
|
|
224
|
+
max_tir: int = 10
|
|
225
225
|
|
|
226
226
|
def __post_init__(self):
|
|
227
227
|
"""Validate beam tracing parameters."""
|
|
@@ -283,7 +283,7 @@ class AdvancedConfig:
|
|
|
283
283
|
mapping: Optional[Any] = (
|
|
284
284
|
"ApertureDiffraction" # String that will be converted to enum in __post_init__
|
|
285
285
|
)
|
|
286
|
-
coherence: bool =
|
|
286
|
+
coherence: bool = True
|
|
287
287
|
fov_factor: Optional[float] = None
|
|
288
288
|
|
|
289
289
|
def __post_init__(self):
|
|
@@ -1071,11 +1071,11 @@ def run_convergence(
|
|
|
1071
1071
|
- n_phi: Number of phi bins for standard mode (default: 181)
|
|
1072
1072
|
|
|
1073
1073
|
# Beam tracing parameters
|
|
1074
|
-
- beam_power_threshold: Beam power threshold (default: 0.
|
|
1075
|
-
- beam_area_threshold_fac: Beam area threshold factor (default:
|
|
1076
|
-
- cutoff: Ray power cutoff (default: 0.
|
|
1077
|
-
- max_rec: Max recursion depth (default:
|
|
1078
|
-
- max_tir: Max TIR bounces (default:
|
|
1074
|
+
- beam_power_threshold: Beam power threshold (default: 0.005)
|
|
1075
|
+
- beam_area_threshold_fac: Beam area threshold factor (default: 0.001)
|
|
1076
|
+
- cutoff: Ray power cutoff (default: 0.999)
|
|
1077
|
+
- max_rec: Max recursion depth (default: 10)
|
|
1078
|
+
- max_tir: Max TIR bounces (default: 10)
|
|
1079
1079
|
|
|
1080
1080
|
# Geometry transformations
|
|
1081
1081
|
- scale: Problem scaling factor - scales entire problem including geometry,
|
|
@@ -1086,7 +1086,7 @@ def run_convergence(
|
|
|
1086
1086
|
|
|
1087
1087
|
# Advanced configuration
|
|
1088
1088
|
- mapping: DSCS mapping scheme (default: goad.Mapping.ApertureDiffraction)
|
|
1089
|
-
- coherence: Enable coherent scattering (default:
|
|
1089
|
+
- coherence: Enable coherent scattering (default: True)
|
|
1090
1090
|
- fov_factor: Field of view factor (optional)
|
|
1091
1091
|
|
|
1092
1092
|
# Reproducibility
|
|
@@ -1136,11 +1136,11 @@ def run_convergence(
|
|
|
1136
1136
|
"""
|
|
1137
1137
|
# Extract beam tracing parameters from kwargs
|
|
1138
1138
|
beam_tracing = BeamTracingConfig(
|
|
1139
|
-
beam_power_threshold=kwargs.pop("beam_power_threshold", 0.
|
|
1140
|
-
beam_area_threshold_fac=kwargs.pop("beam_area_threshold_fac",
|
|
1141
|
-
cutoff=kwargs.pop("cutoff", 0.
|
|
1142
|
-
max_rec=kwargs.pop("max_rec",
|
|
1143
|
-
max_tir=kwargs.pop("max_tir",
|
|
1139
|
+
beam_power_threshold=kwargs.pop("beam_power_threshold", 0.005),
|
|
1140
|
+
beam_area_threshold_fac=kwargs.pop("beam_area_threshold_fac", 0.001),
|
|
1141
|
+
cutoff=kwargs.pop("cutoff", 0.999),
|
|
1142
|
+
max_rec=kwargs.pop("max_rec", 10),
|
|
1143
|
+
max_tir=kwargs.pop("max_tir", 10),
|
|
1144
1144
|
)
|
|
1145
1145
|
|
|
1146
1146
|
# Extract geometry transform parameters
|
|
@@ -1153,7 +1153,7 @@ def run_convergence(
|
|
|
1153
1153
|
# Extract advanced configuration parameters
|
|
1154
1154
|
advanced_config = AdvancedConfig(
|
|
1155
1155
|
mapping=kwargs.pop("mapping", "ApertureDiffraction"),
|
|
1156
|
-
coherence=kwargs.pop("coherence",
|
|
1156
|
+
coherence=kwargs.pop("coherence", True),
|
|
1157
1157
|
fov_factor=kwargs.pop("fov_factor", None),
|
|
1158
1158
|
)
|
|
1159
1159
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
goad_py-0.6.
|
|
2
|
-
goad_py-0.6.
|
|
1
|
+
goad_py-0.6.2.dist-info/METADATA,sha256=yhXKhpIDG10PebeIVcS0pwFfGkCw2a7_odMbvdxynZc,3238
|
|
2
|
+
goad_py-0.6.2.dist-info/WHEEL,sha256=GPFYR4mIPdHeeQ1ax6E8LJaGIrcByvaZAJbs3IVoO7M,104
|
|
3
3
|
goad_py/__init__.py,sha256=iGJg-Oj9btk4I4GITkE7olNRm38uFRjENMJqXaDJmpM,1083
|
|
4
4
|
goad_py/_goad_py.abi3.so,sha256=7d9g01f9rrsakCvfKcbTbxB5I53HotTI60SbPSXyBqY,2120912
|
|
5
5
|
goad_py/convergence.py,sha256=hXVvlfjVEKpOlxoiJ_NGDzDlCoSqyo6V7g3OxNp2xUA,35209
|
|
6
6
|
goad_py/goad_py.pyi,sha256=7Y79-TV-NjEN8DWPEqSRGQ7alCrkylL6y1ZK8d6FYSg,14502
|
|
7
7
|
goad_py/phips_convergence.py,sha256=sA7XIjKRLaRTIDCTjgq0i6xFxYhTD1rcu6ZMYAetDPE,21803
|
|
8
|
-
goad_py/unified_convergence.py,sha256=
|
|
9
|
-
goad_py-0.6.
|
|
8
|
+
goad_py/unified_convergence.py,sha256=3R4D_bVD-u-XbkaZ4R_BcVGZpwKoq8S0OZ-My-Nlxm0,49212
|
|
9
|
+
goad_py-0.6.2.dist-info/RECORD,,
|
|
File without changes
|