We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0399262 + f720ae3 commit 4bf6ca3Copy full SHA for 4bf6ca3
docs/changes/43.optimization.rst
@@ -0,0 +1 @@
1
+Added optional `normalize` parameter to `pyvisgen.visibility.vis_loop` to decide whether to apply a normalization multiplier of `0.5` (default: True)
pyvisgen/simulation/visibility.py
@@ -47,6 +47,7 @@ def vis_loop(
47
mode="full",
48
batch_size="auto",
49
show_progress=False,
50
+ normalize=True,
51
):
52
torch.set_num_threads(num_threads)
53
torch._dynamo.config.suppress_errors = True
@@ -81,7 +82,8 @@ def vis_loop(
81
82
83
# normalize visibilities to factor 0.5,
84
# so that the Stokes I image is normalized to 1
- B *= 0.5
85
+ if normalize:
86
+ B *= 0.5
87
88
# calculate vis
89
visibilities = Visibilities(
0 commit comments