Skip to content

Commit

Permalink
improve coordinate code
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Morris committed Oct 7, 2024
1 parent 46bd78c commit 52bebe2
Show file tree
Hide file tree
Showing 13 changed files with 260 additions and 382 deletions.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ maria

.. raw:: html

<audio controls="controls">
<audio controls="controls" title="“They Call the Wind Maria” from Paint Your Wagon">
<source src="./_static/they_call_the_wind_maria.mp4" type="audio/wav">
Your browser does not support the <code>audio</code> element.
</audio>
Expand Down
2 changes: 2 additions & 0 deletions docs/source/papers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ Papers
`T. W. Morris et al. (2022) <https://arxiv.org/abs/2111.01319>`_

`J. van Marrewijk, T. W. Morris et al. (2024) <https://arxiv.org/abs/2402.10731>`_

`L. Di Mascolo et al. (2024) <https://arxiv.org/pdf/2403.00909>`_
76 changes: 31 additions & 45 deletions docs/source/tutorials/MUSTANG-2_cluster.ipynb

Large diffs are not rendered by default.

103 changes: 51 additions & 52 deletions docs/source/tutorials/custom-map-simulations.ipynb

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions maria/atmosphere/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ def initialize(self, sim: BaseSimulation, timestep: float = 1e-1, h_max=3e3):
)

self.boresight = sim.boresight.downsample(timestep=timestep)
self.coords = self.boresight.broadcast(dets=sim.instrument.dets)
self.coords = self.boresight.broadcast(
sim.instrument.dets.offsets, frame="az_el"
)

# this is a smaller version of the sim coords
outer_coords = self.boresight.broadcast(dets=sim.instrument.dets.outer())
outer_coords = self.boresight.broadcast(
sim.instrument.dets.outer().offsets, frame="az_el"
)

self.processes = {}

Expand Down
4 changes: 3 additions & 1 deletion maria/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def __init__(
)

# this can be expensive sometimes
self.coords = self.boresight.broadcast(self.instrument.dets)
self.coords = self.boresight.broadcast(
self.instrument.dets.offsets, frame="az_el"
)

logger.debug("Constructed offsets.")

Expand Down
Loading

0 comments on commit 52bebe2

Please sign in to comment.