Skip to content

Can we have multiple instances of dss_engine? #42

@rayanelhelou

Description

@rayanelhelou

Is it possible to create more than one dss_engine object at once without them conflicting with one another?
I ask because for the following lines of code (from the examples in your README):

import dss
dss_engine = dss.DSS

dss_engine is not an instance, right? However, in contrast, using the COM interface:

import win32com.client 
dss_engine = win32com.client.gencache.EnsureDispatch("OpenDSSEngine.DSS")

the dss_engine object is indeed an instance, and you can have many of them simultaneously.

Correct me if I'm wrong, but would the solution to creating multiple instances have something to do with generating multiple instances of CffiApiUtil?

I appreciate your time and clarification on this matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions