Skip to content

Commit e9c6feb

Browse files
authored
Update mag_difference_crossmatch.py
1 parent b534f41 commit e9c6feb

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/lsdb_crossmatch/mag_difference_crossmatch.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,6 @@ def perform_crossmatch(
7676
max_distance=max_d_chord,
7777
)
7878

79-
if len(left_idx_all) == 0:
80-
return (
81-
np.array([], dtype=np.int64),
82-
np.array([], dtype=np.int64),
83-
pd.DataFrame(
84-
{
85-
"_dist_arcsec": pd.Series(dtype=pd.ArrowDtype(pa.float64())),
86-
"_magnitude_difference": pd.Series(dtype=pd.ArrowDtype(pa.float64())),
87-
}
88-
),
89-
)
90-
9179
arc_distances_all = np.degrees(2.0 * np.arcsin(0.5 * chord_distances_all)) * 3600
9280

9381
all_matches_df = pd.DataFrame(

0 commit comments

Comments
 (0)