dss-extensions / dss-extensions/AltDSS-Go

Adjust default/initial behavior of the engine

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Some defaults on DSS C-API are left for compatibility with the official OpenDSS COM implementation. Some things to consider toggling in AltDSS-Go when the first instance is created:

- `DSS.Set_AllowChangeDir(false)`: avoid changing the process working directory. Track it in the engine instead. Required for multi-threading.
- `DSS.Set_COMErrorResults(false)`: When errors occur in the engine, some arrays are filled with one or two elements (typically just `[0]`) to represent an error, besides an error number being exposed in the error interface. Since we already map the Error API in Golang, which is more general and complete, the engine can return empty arrays instead.
- `DSS.Set_AllowForms(false)`: there are no forms and the text/terminal output is usually not useful. We are not using the output callbacks either for plotting etc., since it doesn't make much sense here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.