Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.4.5 #223

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.4.5
### new features
- allow users to set separation distance for grid and hex layout
- fix mamba fail
- allow users to choose the indices of the input galaxies

# 0.4.4
### new features
- add support for passing se_wcs to make_exp function in sim.py
Expand Down
4 changes: 2 additions & 2 deletions descwl_shear_sims/galaxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,14 +701,14 @@ def __init__(
)
else:
indice_min = indice_id * num
indice_max = min(indice_min + num, self._wldeblend_cat.size)
indice_max = indice_min + num
if indice_min >= self._wldeblend_cat.size:
raise ValueError("indice_min too large")
self.indices = np.arange(
indice_min,
indice_max,
dtype=int,
)
) % self._wldeblend_cat.size
# do a random rotation for each galaxy
self.angles = self.rng.uniform(low=0, high=360, size=num)

Expand Down
2 changes: 1 addition & 1 deletion descwl_shear_sims/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.3' # noqa
__version__ = '0.4.5' # noqa
Loading