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

Kk/patches #53

Merged
merged 8 commits into from
Oct 1, 2024
Merged

Kk/patches #53

merged 8 commits into from
Oct 1, 2024

Conversation

kkappler
Copy link
Collaborator

@kkappler kkappler commented Sep 28, 2024

Description

  1. Update _add_columns function

    • _add_columns function sets 'fc' column to false by default
    • we do not know if there are fcs or not so suggest setting to NA instead
    • added/tidied doc (a bit)
  2. Minor change to doc

    • while fiddling with earthscope notebooks, noticed doc for apply_bbox could use a tweak
      • return type was not correct

Motivation and Context

Aurora checks if there are na values in the fc column. It treats boolean values, False/True as if the FCs have been looked for and the answer is the entry in the dataframe. So, by setting them to False by default (and not None, or NA) aurora was assuming that the fcs had been sought and they were not present.
(I suppose I could tell aurora to look for them if the value was False or NA)....

simpeg/aurora#358

How Has This Been Tested?

Aurora's synthetic data processing example notebook runs ans now processes from FCs.

Active branch for /home/kkappler/software/irismt/aurora: patches
Active branch for /home/kkappler/software/irismt/mth5: patches
Active branch for /home/kkappler/software/irismt/mt_metadata: main
Active branch for /home/kkappler/software/irismt/mtpy-v2: kk/patches

Screenshots (if appropriate):

Before change

The fc column in the below dataframe was all False

With change
image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
    • ran tests/processing/test_kernel_dataset.py

kkappler and others added 3 commits September 28, 2024 14:58
- _add_columns function sets 'fc' column to false by default
- we do not know if there are fcs or not so suggest setting to NA instead
- added/tidied doc (a bit)
- while fiddling with earthscope notebooks, noticed doc for apply_bbox could use a tweak
  - return type was not correct
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 33.24%. Comparing base (3f38872) to head (4ccc60b).
Report is 9 commits behind head on updates.

Additional details and impacted files
@@             Coverage Diff             @@
##           updates      #53      +/-   ##
===========================================
+ Coverage    33.22%   33.24%   +0.01%     
===========================================
  Files          146      146              
  Lines        23976    23983       +7     
===========================================
+ Hits          7965     7972       +7     
  Misses       16011    16011              
Flag Coverage Δ
tests 33.24% <100.00%> (+0.01%) ⬆️

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

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

@kujaku11 kujaku11 self-requested a review September 30, 2024 21:08
@kujaku11 kujaku11 changed the base branch from main to updates September 30, 2024 21:08
@kujaku11 kujaku11 marked this pull request as ready for review October 1, 2024 00:39
Copy link
Contributor

@kujaku11 kujaku11 left a comment

Choose a reason for hiding this comment

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

Solid updates.

@kujaku11 kujaku11 merged commit c5600bc into updates Oct 1, 2024
6 checks passed
@kujaku11 kujaku11 deleted the kk/patches branch October 1, 2024 02:01
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.

2 participants