dss-extensions / dss-extensions/AltDSS-Go

Adjust default/initial behavior of the engine

Aperta
#2 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
8
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.