Skip to content

Add Jupyter notebook and parametrize example input files#2

Merged
yannrichet-asnr merged 3 commits intomainfrom
copilot/add-jupyter-notebook-root
Nov 28, 2025
Merged

Add Jupyter notebook and parametrize example input files#2
yannrichet-asnr merged 3 commits intomainfrom
copilot/add-jupyter-notebook-root

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

Adds an example Jupyter notebook at the root directory (mirroring fz-scale) and extends the example input file to demonstrate multi-parameter usage.

Changes

  • example_usage.ipynb: New notebook covering plugin installation, input parsing, compilation, parametric runs, and visualization
  • examples/Model/input.txt: Extended from single variable to three parameters (x, y, z)
  • .fz/calculators/Model.sh: Updated to extract and compute x + y + z; uses awk -v for safe variable passing
  • tests/test_plugin.py: Updated assertions for new variables
  • README.md: Updated examples to reflect multi-parameter usage

Example input format

# Input parameters
x = ${x}
y = ${y}
z = ${z}

Example API usage

results = fz.fzr(
    input_path="examples/Model/input.txt",
    input_variables={"x": [1.0, 2.0], "y": [1.0], "z": [0.5]},
    model="Model",
    calculators="localhost_Model"
)
Original prompt

like in fz-scale, add a jupyter notebook at root dir, and in examples, input files should be parametrized


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 28, 2025 14:18
…les (x, y, z)

Co-authored-by: yannrichet-asnr <148193180+yannrichet-asnr@users.noreply.github.com>
Co-authored-by: yannrichet-asnr <148193180+yannrichet-asnr@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Jupyter notebook to root directory Add Jupyter notebook and parametrize example input files Nov 28, 2025
@yannrichet-asnr yannrichet-asnr marked this pull request as ready for review November 28, 2025 14:29
@yannrichet-asnr yannrichet-asnr merged commit 9e2d3f7 into main Nov 28, 2025
6 checks passed
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