Skip to content

Commit

Permalink
fix: use vstack instead of column_stack to make first row theta, seco…
Browse files Browse the repository at this point in the history
…nd row phi
  • Loading branch information
zonca committed Sep 18, 2024
1 parent 21d0ade commit 28b7718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pysm3/models/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def get_emission(
output_map = enmap.enmap(np.zeros(shape, dtype=np.float32), wcs)
r, p = pointsrcs.expand_beam(fwhm2sigma(fwhm.to_value(u.rad)))
with h5py.File(self.catalog_filename) as f:
pointing = np.column_stack(
pointing = np.vstack(
(np.pi / 2 - np.array(f["theta"]), np.array(f["phi"]))
)
output_map[0] = pointsrcs.sim_objects(
Expand Down

0 comments on commit 28b7718

Please sign in to comment.