diff --git a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js index 61f2a57de..88d8b86ad 100644 --- a/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js +++ b/src/electron/frontend/core/components/pages/guided-mode/results/GuidedResults.js @@ -63,17 +63,16 @@ export class GuidedResultsPage extends Page { all the necessary data.
${new CodeBlock({ - text: `from pynwb import NWBHDF5IO, NWBFile, TimeSeries + text: `from pynwb import NWBHDF5IO, NWBFile -filename = "${this.#sharedPath()}" +nwbfile_path= "${this.#sharedPath()}" # Open the file -with NWBHDF5IO(filename, "r+") as io: +with NWBHDF5IO(path=nwbfile_path, mode="r+") as io: nwbfile = io.read() # Adjust the file as needed # ... - `, })}