From df662c9fff0846424baf432b785aef900ca24f46 Mon Sep 17 00:00:00 2001 From: alexPatrie Date: Fri, 1 Mar 2024 12:43:12 -0500 Subject: [PATCH] fixed builder in demo --- .../biosimulator_builder.py | 2 +- notebooks/builder_composer.ipynb | 29 ++++--------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/biosimulator_processes/biosimulator_builder.py b/biosimulator_processes/biosimulator_builder.py index 682d52d1d..a725240fd 100644 --- a/biosimulator_processes/biosimulator_builder.py +++ b/biosimulator_processes/biosimulator_builder.py @@ -4,6 +4,6 @@ class BiosimulatorBuilder(Builder): - def __init__(self, schema: Dict, tree: Dict, filepath: str): + def __init__(self, schema: Dict = None, tree: Dict = None, filepath: str = None): super().__init__(schema=schema, tree=tree, file_path=filepath, core=CORE) diff --git a/notebooks/builder_composer.ipynb b/notebooks/builder_composer.ipynb index b1836f159..b82c9e5e6 100644 --- a/notebooks/builder_composer.ipynb +++ b/notebooks/builder_composer.ipynb @@ -15,7 +15,10 @@ "metadata": {}, "outputs": [], "source": [ - "from builder import Builder, Process, ProcessTypes" + "from builder import Builder, Process\n", + "from biosimulator_processes import CORE\n", + "from biosimulator_processes.data_model import *\n", + "from biosimulator_processes.biosimulator_builder import BiosimulatorBuilder" ] }, { @@ -26,18 +29,6 @@ "## Initialize the builder" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "23ae6471dca4692b", - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "from biosimulator_processes import CORE" - ] - }, { "cell_type": "code", "execution_count": null, @@ -45,19 +36,9 @@ "metadata": {}, "outputs": [], "source": [ - "b = Builder(core=CORE)" + "b = BiosimulatorBuilder()" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "deceb0daee61b0ce", - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [] - }, { "cell_type": "markdown", "id": "dd85f98e-c5e3-467b-97ab-1ced7e810a17",