Add suffix_method kwarg to define suffix behavior#1021
Conversation
Some benchmarks failed or their performance regressed significantly. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1021 +/- ##
==========================================
- Coverage 97.19% 97.16% -0.04%
==========================================
Files 46 46
Lines 2638 2679 +41
==========================================
+ Hits 2564 2603 +39
- Misses 74 76 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-authored-by: Melissa DeLucchi <113376043+delucchi-cmu@users.noreply.github.com>
|
I updated the code with your comments. While I was adding more tests I realized the metadata ra and dec columns weren't being updated properly, so I fixed that. The metadata also had some logic about carrying over default columns, but I remember users not liking that (If they load a catalog, xmatch, save, then load and half the columns don't load). So I just got rid of the default columns logic, but I can put it back in if you want. |
delucchi-cmu
left a comment
There was a problem hiding this comment.
Let's go with the straightforward readable approach for now.
# Conflicts: # pyproject.toml
Some benchmarks failed or their performance regressed significantly. |
Some benchmarks failed or their performance regressed significantly. |
Some benchmarks failed or their performance regressed significantly. |
# Conflicts: # src/lsdb/dask/join_catalog_data.py
Some benchmarks failed or their performance regressed significantly. |
Updates suffix behavior in crossmatch and join method to take a kwarg
suffix_methodto determine the suffix behavior. The two options currently areall_columnsandoverlapping_columns.all_columnsapplies suffixes to all columns in the catalogs, whileoverlapping_columnsonly renames the conflicting names and logs a warning with these renames.The default currently is
all_columnsto match our current behavior, but there is a future warning if the user doesn't explicitly set the suffix method that the default will change in the future.Closes #951 and closes #911 and closes #74