SunnyXu / SBMLDiagrams

MIT License
5 stars 1 forks source link

Version 1: Add method to detect layout #72

Closed hsauro closed 2 years ago

hsauro commented 2 years ago

Do you have a method in sbmldiagrams to check if a sbml file has layout and render? If not can you put one?

eg

df = SBMLDiagrams.load(sbmlStr) if df.hasLayout():    print ("Model has layout information")

SunnyXu commented 2 years ago

added a new function hasLayout() (https://sys-bio.github.io/SBMLDiagrams/Network.html#SBMLDiagrams.load.hasLayout)