xmatcher 0.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
xmatcher/__init__.py ADDED
@@ -0,0 +1,78 @@
1
+ """xmatcher: cross-match astronomical catalogues (local files, remote archives, HATS).
2
+
3
+ Key high-level operations:
4
+
5
+ * :meth:`CrossMatch.crossmatch` — classic two-catalogue match.
6
+ * :meth:`CrossMatch.crossmatch_multi` — N-catalogue pairwise intersection.
7
+ * :meth:`CrossMatch.union_match` — build a master union catalogue (full outer joins).
8
+ * :meth:`CrossMatch.nway_match` — Bayesian N-way simultaneous crossmatching.
9
+ * :meth:`CrossMatch.fof_match` — Friends-of-Friends transitive closure merging
10
+ multi-survey detections into object bundles.
11
+ * :meth:`CrossMatch.crossmatch_request` — typed entry point for new code.
12
+ """
13
+
14
+ from .candidates import (
15
+ normalize_candidate_hypotheses,
16
+ verify_candidate_release,
17
+ write_candidate_release,
18
+ )
19
+ from .crossmatch import CrossMatch
20
+ from .exceptions import ConfigError, CrossMatchError, InputError, StiltsError, TapError
21
+ from .io_utils import (
22
+ FrameLike,
23
+ astropy_table_to_polars,
24
+ is_hats_dir,
25
+ polars_to_astropy,
26
+ scan_frame,
27
+ write_frame,
28
+ )
29
+ from .matchers import MatchSpec
30
+ from .observations import (
31
+ namespaced_source_id,
32
+ normalize_photometry,
33
+ normalize_property_evidence,
34
+ required_observation_columns,
35
+ source_inventory,
36
+ validate_source_inventory,
37
+ verify_observation_release,
38
+ write_observation_release,
39
+ )
40
+ from .request import MatchRequest, SideOverrides # noqa: F401
41
+ from .sources import CatalogueSource
42
+
43
+ __version__ = "0.5.1"
44
+
45
+ __all__ = [
46
+ # Main entry points
47
+ "CrossMatch",
48
+ "CatalogueSource",
49
+ "MatchSpec",
50
+ "MatchRequest",
51
+ "SideOverrides",
52
+ "source_inventory",
53
+ "namespaced_source_id",
54
+ "normalize_photometry",
55
+ "normalize_property_evidence",
56
+ "required_observation_columns",
57
+ "validate_source_inventory",
58
+ "write_observation_release",
59
+ "verify_observation_release",
60
+ "write_candidate_release",
61
+ "verify_candidate_release",
62
+ "normalize_candidate_hypotheses",
63
+ # Exceptions
64
+ "CrossMatchError",
65
+ "ConfigError",
66
+ "InputError",
67
+ "TapError",
68
+ "StiltsError",
69
+ # I/O helpers (Arrow interop)
70
+ "FrameLike",
71
+ "is_hats_dir",
72
+ "scan_frame",
73
+ "write_frame",
74
+ "astropy_table_to_polars",
75
+ "polars_to_astropy",
76
+ # Meta
77
+ "__version__",
78
+ ]
xmatcher/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ sys.exit(main())