-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document meaning of "graph" and "dto" #144
Comments
Hi Patrick, thank you very much for your interest and effort into learning how to use eCalc. I would very much like to answer your questions, and I would do that briefly, but I will leave out a thorough explanation because the work is WIP, as it states in the readme:
These things WILL be changed, and we therefore do not encourage you to use this "internal structure" yet, until we have a structure that we do not intend to change in the future. However, FWIW, I will answer your questions briefly:
This is a code internal implementation detail on how the equipment is connected together. This may change in the future. We will provide better options to get the relevant data when we are ready. For now, please use the resulting JSON or CSV files.
This is also WIP. A DTO is a Data Transfer Object (data object that can be serialized and is possibly customized for a particular usage/serialization), but this is a bit misleading/wrongly used in the current implementation. Expect to work on
The current input YAML is a legacy input interface, and do not reflect a good and consistent way for the eCalc model in our opinion. Due to backwards compatibility reasons etc, the YAML file is currently what it is. We would want to go for a better structure.
Currently, no, when using the Library API. eCalc Dev Team |
Thank you for the response. I have followed the setup in |
Having perused eCalc for a little while, I have some questions I think might be helpful for other users as well that maybe should be documented, or at least discussed.
Example:
model = EnergyCalculator(graph=yaml_model.graph)
.Is it for generating the nice component chart that is at the top of each example in the documentation?
DTO
, and what is DTO ?id_hash
fromyaml_model.graph.components
in order to look up something in the output ofmodel.evaluate_energy_usage
?The text was updated successfully, but these errors were encountered: