-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cross-correlation alignment method and docstrings.
- Loading branch information
1 parent
03f8651
commit 5454164
Showing
5 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
from .example_module import greetings, meaning | ||
|
||
__all__ = ["greetings", "meaning"] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
import hipscat | ||
from corrgi.alignment import autocorrelation_alignment | ||
from corrgi.alignment import autocorrelation_alignment, crosscorrelation_alignment | ||
|
||
|
||
def test_autocorrelation_alignment(data_catalog_dir): | ||
data_catalog = hipscat.read_from_hipscat(data_catalog_dir) | ||
alignment = autocorrelation_alignment(data_catalog) | ||
assert len(alignment.pixel_mapping) == 28 | ||
|
||
|
||
def test_crosscorrelation_alignment(dr7_lrg_catalog_dir, dr7_lrg_rand_catalog_dir): | ||
dr7_catalog = hipscat.read_from_hipscat(dr7_lrg_catalog_dir) | ||
dr7_rand_catalog = hipscat.read_from_hipscat(dr7_lrg_rand_catalog_dir) | ||
alignment = crosscorrelation_alignment(dr7_catalog, dr7_rand_catalog) | ||
## dr7_catalog has 12 partitions | ||
## dr7_rand_catalog has 22 partitions | ||
## 12*21 = 252 | ||
assert len(alignment.pixel_mapping) == 252 |
This file was deleted.
Oops, something went wrong.