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

Implements RandomSquareSampling #443

Merged
merged 5 commits into from
Sep 5, 2023
Merged

Implements RandomSquareSampling #443

merged 5 commits into from
Sep 5, 2023

Conversation

atorchylo
Copy link
Contributor

@atorchylo atorchylo commented Aug 18, 2023

Added a RandomSquareSampling sampling function, which allows user to get a subset of input catalog of a needed size. Unlike DefaultSampling, which selects galaxies randomly and then shifts them on the output image, RandomSquareSampling selects galaxies that are physically close to each other.

Closes #423

@atorchylo atorchylo changed the title implements random square sampling Implements#423 Aug 18, 2023
@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Patch coverage: 7.31% and project coverage change: -1.53% ⚠️

Comparison is base (f5b716a) 61.91% compared to head (0b64bf7) 60.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #443      +/-   ##
==========================================
- Coverage   61.91%   60.39%   -1.53%     
==========================================
  Files          19       19              
  Lines        1431     1472      +41     
==========================================
+ Hits          886      889       +3     
- Misses        545      583      +38     
Flag Coverage Δ
unittests 60.39% <7.31%> (-1.53%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
btk/sampling_functions.py 37.41% <7.31%> (-11.65%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@atorchylo atorchylo changed the title Implements#423 Implements #423 Aug 18, 2023
@atorchylo atorchylo linked an issue Aug 18, 2023 that may be closed by this pull request
2 tasks
@ismael-mendoza ismael-mendoza self-requested a review August 19, 2023 20:27
@ismael-mendoza ismael-mendoza changed the title Implements #423 Implements RandomSquareSampling Aug 19, 2023
Copy link
Collaborator

@ismael-mendoza ismael-mendoza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay @atorchylo I have some small suggestions and a question

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@ismael-mendoza ismael-mendoza self-requested a review September 5, 2023 01:27
@ismael-mendoza ismael-mendoza merged commit 198e102 into dev Sep 5, 2023
@ismael-mendoza ismael-mendoza deleted the new-sampling branch September 5, 2023 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new sampling function: subregions sampling
2 participants