Skip to content

Commit

Permalink
Apply image flip at the beginning of vis_loop
Browse files Browse the repository at this point in the history
This is to ensure the images are indexed correctly,
e.g. for plotting.
  • Loading branch information
aknierim committed Oct 9, 2024
1 parent 68b2a04 commit 607c187
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyvisgen/simulation/visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def vis_loop(
torch.set_num_threads(num_threads)
torch._dynamo.config.suppress_errors = True

SI = torch.flip(SI, dims=[1])

# define unpolarized sky distribution
SI = SI.permute(dims=(1, 2, 0))
I = torch.zeros((SI.shape[0], SI.shape[1], 4), dtype=torch.cdouble)
Expand Down

0 comments on commit 607c187

Please sign in to comment.