相关文章推荐
迷茫的打火机  ·  MySQL 8.0 ...·  1 月前    · 
迷茫的打火机  ·  AiMesh with USB ...·  6 月前    · 
迷茫的打火机  ·  Python : openpyxl ...·  8 月前    · 
迷茫的打火机  ·  Hubs Publishing | ...·  8 月前    · 
迷茫的打火机  ·  JSONPath 支持 | Kubernetes·  11 月前    · 
迷茫的打火机  ·  How to fix PyCharm ...·  11 月前    · 
暗恋学妹的投影仪  ·  《spring ...·  1小时前    · 
从容的排球  ·  异常 ...·  1小时前    · 
无邪的铁板烧  ·  mybatis 操作 oracle 报错 ...·  1小时前    · 
善良的骆驼  ·  ONNX未使用GPU·  1小时前    · 
好帅的海龟  ·  轻松学pytorch之使用onnx ...·  1小时前    · 
活泼的生姜  ·  21 Markdown格式 | R语言教程·  1小时前    · 
No, not directly at least, COM is a technology specific to Windows. But, since it seems you use Python, you can achieve good source code compatibility using the DSS_Python module. That is, most of the code can be used for COM (Windows) and DSS_Python (Windows, Linux, macOS).

The usual minimal example is to replace the creation of the OpenDSS instance from win32com:

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

to DSS_Python:

import dss
dss_engine = dss.DSS

You could do that first on Windows to ensure your code runs correctly (please feel free to report issues).

Some relevant links with more info and other alternatives:
https://sourceforge.net/p/electricdss/discussion/861976/thread/525c13df/
https://github.com/dss-extensions/dss_python
https://github.com/dss-extensions/dss_capi/blob/master/docs/known_differences.md
https://dss-extensions.org/

 
推荐文章
善良的骆驼  ·  ONNX未使用GPU
1小时前