Opened 6 years ago

Closed 6 years ago

#5289 closed defect (fixed)

[OMPython] Support multiple files in ModelicaSystem

Reported by: Adrian Pop Owned by: Alachew Mengist
Priority: high Milestone: 1.13.2
Component: OMPython Version:
Keywords: Cc: Adeel Asghar, arunkumar palanisamy

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 by Adrian Pop, 6 years ago

Cc: Adeel Asghar added

comment:2 by Adrian Pop, 6 years ago

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 by Adeel Asghar, 6 years ago

Cc: arunkumar palanisamy added

comment:4 by Adeel Asghar, 6 years ago

Milestone: Future1.13.2
Resolution: fixed
Status: newclosed

Done in f60fdbf/OMPython.

Note: See TracTickets for help on using tickets.