Skip to content

Commit 106d9f9

Browse files
authored
Make SbmlModel.from_file(..., model_id) optional (#207)
The constructor has a default of `None`, which it handles by taking the ID attribute from the SBML model.
1 parent d0481b5 commit 106d9f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

petab/models/sbml_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __setstate__(self, state):
5959
self.__dict__.update(state)
6060

6161
@staticmethod
62-
def from_file(filepath_or_buffer, model_id: str):
62+
def from_file(filepath_or_buffer, model_id: str = None):
6363
sbml_reader, sbml_document, sbml_model = get_sbml_model(
6464
filepath_or_buffer)
6565
return SbmlModel(

0 commit comments

Comments
 (0)