Skip to content

Extend the storage tool and widget - #336

Merged
liamhuber merged 1 commit into
mainfrom
flexible-browser
Sep 30, 2026
Merged

liamhuber merged 1 commit into
mainfrom
flexible-browser

Conversation

@liamhuber

Copy link
Copy Markdown
Member

to work with all result types. Also allow the starting point inside the h5 file to be specified.

This is a pure extension, the starting point default is the same as it used to be hard-coded, and we've just extended what can be browsed from DAG results to all results.

E.g., browsing a plain atomic node:

import bagofholding as boh
import flowrep as fr
import pyiron_workflow as pwf


@fr.atomic
def foo(x, y):
    z = x + y
    return z

@fr.workflow
def bar(x, y):
    f = foo(x, y)
    return f

n = pwf.node(foo)
# n = pwf.node(bar)
run = n.run(x=1, y=2)
boh.H5Bag.save(run, "data.h5", overwrite_existing=True)

browser = fr.tools.LexicalBagBrowser("data.h5", storage_root="object/state/result")
print(browser.list_paths())
browser.browse()
>>> import bagofholding as boh
import flowrep as fr
import pyiron_workflow as pwf


@fr.atomic
def foo(x, y):
    z = x + y
    return z

@fr.workflow
def bar(x, y):
    f = foo(x, y)
    return f

n = pwf.node(foo)
# n = pwf.node(bar)
run = n.run(x=1, y=2)
boh.H5Bag.save(run, "data.h5", overwrite_existing=True)

browser = fr.tools.LexicalBagBrowser("data.h5", storage_root="object/state/result")
print(browser.list_paths())
>>> ['inputs.x', 'inputs.y', 'outputs.z']

browser.browse()
Screenshot 2026-09-30 at 8 57 28 AM

@github-actions

Copy link
Copy Markdown

Binder 👈 Launch a binder notebook on branch pyiron/flowrep/flexible-browser

to work with all result types. Also allow the starting point inside the h5 file to be specified.

Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Liam Huber <liamhuber@greyhavensolutions.com>
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.95%. Comparing base (b877c30) to head (f92c2f6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #336   +/-   ##
=======================================
  Coverage   99.95%   99.95%           
=======================================
  Files          53       53           
  Lines        4125     4135   +10     
=======================================
+ Hits         4123     4133   +10     
  Misses          2        2           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@liamhuber
liamhuber merged commit 6deaab4 into main Sep 30, 2026
22 checks passed
@liamhuber
liamhuber deleted the flexible-browser branch September 30, 2026 16:33
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.

1 participant