Skip to content

Commit 1d088ef

Browse files
committed
bug: fix a typo...
1 parent ca53580 commit 1d088ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/bg2cellml/index.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { getBgRdf } from './celldl'
2727
import { test as runTest } from './test'
2828

2929
export interface CellMLOutput {
30-
metatata?: string // Turtle
30+
metadata?: string // Turtle
3131
cellml?: string // XML
3232
exception?: string
3333
issues?: string[]
@@ -129,16 +129,16 @@ export async function initialisePython(pyodideApi: PyodideAPI, rdfInterface: Rdf
129129
const RUN_BG2CELLML = `
130130
from pyodide.ffi import to_js
131131
132-
async def bg2cellml(uri: str, bg_rdf: str, metatata: bool=False, debug: bool=False):
132+
async def bg2cellml(uri: str, bg_rdf: str, metadata: bool=False, debug: bool=False):
133133
try:
134134
bgrdf_model = framework.make_bondgraph_model(uri, bg_rdf, debug=debug)
135135
if bgrdf_model.has_issues:
136136
result = { 'issues': get_issues(bgrdf_model.issues, debug) }
137137
else:
138138
cellml_model = bgrdf_model.make_cellml_model()
139139
result = { 'cellml': cellml_model.to_xml() }
140-
if metatata:
141-
result['metatata'] = await cellml_model.metadata(uri)
140+
if metadata:
141+
result['metadata'] = await cellml_model.metadata(uri)
142142
return to_js(result)
143143
except Exception as e:
144144
return to_js({

0 commit comments

Comments
 (0)