Skip to content

Conversation

be-smith
Copy link
Contributor

@be-smith be-smith commented Aug 8, 2025

Utilising new Navani functionality to read and stitch together multiple echem files.

Shouldn't change functionality of existing blocks as doesn't change single file behaviour - adds a button to toggle between the single file reader and the multi file reader.
Screenshot 2025-08-08 at 11 28 54

Copy link

codecov bot commented Aug 8, 2025

Codecov Report

❌ Patch coverage is 68.96552% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.07%. Comparing base (5bc85ba) to head (c846c8a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pydatalab/src/pydatalab/apps/echem/blocks.py 68.96% 18 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1307      +/-   ##
==========================================
- Coverage   80.15%   80.07%   -0.09%     
==========================================
  Files          70       70              
  Lines        4707     4727      +20     
==========================================
+ Hits         3773     3785      +12     
- Misses        934      942       +8     
Files with missing lines Coverage Δ
pydatalab/src/pydatalab/apps/echem/blocks.py 76.22% <68.96%> (-3.19%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@be-smith be-smith marked this pull request as ready for review August 8, 2025 10:41
Copy link

cypress bot commented Aug 8, 2025

datalab    Run #3814

Run Properties:  status check passed Passed #3814  •  git commit 1c92a3cd3a ℹ️: Merge c846c8ac4b9eece2a7f6fa34cff85a5bae266593 into 5bc85ba563fabf9ed96405fcf331...
Project datalab
Branch Review bes/echem_multi_file
Run status status check passed Passed #3814
Run duration 07m 09s
Commit git commit 1c92a3cd3a ℹ️: Merge c846c8ac4b9eece2a7f6fa34cff85a5bae266593 into 5bc85ba563fabf9ed96405fcf331...
Committer Ben Smith
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 336
View all changes introduced in this branch ↗︎

@be-smith be-smith self-assigned this Aug 8, 2025
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Great work @be-smith! Some comments from our discussion:

  • Let's choose file_ids as the ground truth, and let the block decide whether to do multi or not itself, i.e., remove all the multi_select_flag stuff from the Python side.
  • Forget about caching multifile stuff for now, given caveats around underlying updating (hopefully this just removing code)
  • UI side: think about populating selected files with some default sort mechanism of all available files by default
  • Probably the above point would need to switch to "Apply" button style rather dynamic

Final stretch goaly kinda thing:

People will want to use this to compare cells, we should probably let them even if its a bit inelegant for now -- eventually this code could be moved to a separate app if lots of extra controls are needed.

@be-smith
Copy link
Contributor Author

A reminder for when we discuss changes - do we want prev_file_ids to persist across reloads etc - for switching between the plotting modes or do we not care?

@be-smith be-smith force-pushed the bes/echem_multi_file branch 2 times, most recently from 6497d25 to df12fd0 Compare August 22, 2025 12:55
@ml-evs ml-evs self-requested a review August 22, 2025 13:49
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Looking good and working well, just a few minor comments to tidy up the Python side. Thanks @be-smith!

@be-smith be-smith force-pushed the bes/echem_multi_file branch from d3b38e5 to 8ed26e5 Compare August 27, 2025 16:55
- Fix case of single file ID passed to echem block
@ml-evs ml-evs force-pushed the bes/echem_multi_file branch from d84db65 to c846c8a Compare August 28, 2025 23:37
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

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

Did a minor tidy up (removed some unused caching, logging and timing), but now looks good. Thanks @be-smith!

@ml-evs ml-evs merged commit bbc98c1 into main Aug 28, 2025
15 checks passed
@ml-evs ml-evs deleted the bes/echem_multi_file branch August 28, 2025 23:58
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