Opened 6 years ago

Closed 6 years ago

#5289 closed defect (fixed)

[OMPython] Support multiple files in ModelicaSystem

Reported by: adrpo Owned by: alash325
Priority: high Milestone: 1.13.2
Component: OMPython Version:
Keywords: Cc: adeas31, arun3688

Description

See:
https://stackoverflow.com/questions/54267150/openmodelica-with-python/54270353

Can we fix it so ModelicaSystem can load several files?

Something like:

mod = ModelicaSystem(["file1.mo", "file2.mo"], Name, ["Lib1", "Lib2"])

Can we overload the constructor of ModelicaSystem to support this?

Change History (4)

comment:1 Changed 6 years ago by adrpo

  • Cc adeas31 added

comment:2 Changed 6 years ago by adrpo

I guess we could also go for:

mod = ModelicaSystem("file1.mo", Name, ["file2.mo", "Lib1", "Lib2"])

to not change the interface. Just see if the libs are ending in .mo.

comment:3 Changed 6 years ago by adeas31

  • Cc arun3688 added

comment:4 Changed 6 years ago by adeas31

  • Milestone changed from Future to 1.13.2
  • Resolution set to fixed
  • Status changed from new to closed

Done in f60fdbf/OMPython.

Note: See TracTickets for help on using tickets.