Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fixed builder in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Mar 1, 2024
1 parent 7d19249 commit df662c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
2 changes: 1 addition & 1 deletion biosimulator_processes/biosimulator_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

29 changes: 5 additions & 24 deletions notebooks/builder_composer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
{
Expand All @@ -26,38 +29,16 @@
"## 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,
"id": "b6260555-2bad-4834-adc5-e6d358063579",
"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",
Expand Down

0 comments on commit df662c9

Please sign in to comment.