Skip to content
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

Cpp cleanup #67

Merged
merged 58 commits into from
Feb 14, 2025
Merged

Cpp cleanup #67

merged 58 commits into from
Feb 14, 2025

Conversation

tanaya-mankad
Copy link
Contributor

@tanaya-mankad tanaya-mankad commented Jan 16, 2025

This is a bit of an omnibus:

  • merged the 232-updates branch
  • merged the Schema class into lattice.py
  • updated example schema to adhere to the conventions enforced by the Schema class
  • updated the CPP generators' Python architecture (using dataclasses)
  • added base classes and extensions to customize lattice for 205 example
    Also, this branch includes work done on other unmerged branches, so they've come along for the ride (improved documentation, build support files.)

tanaya-mankad and others added 30 commits May 27, 2024 11:59
Description: "Base schema for ASHRAE 205 representations"
Version: "0.2.0"
References:
- "ASHRAE205"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the HeatSourceTemplate is in the ASHRAE205 schema, it becomes a dependency for the CPP generator (the derived classes need to know where to find & scope the base class from. I posted a question on Slack about this issue...

Comment on lines 59 to 62
elif ext in [".h", ".cpp", ".txt"]:
with open(output_file_path, "w", encoding="utf-8") as src:
src.write(content)
src.write("\n")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to fit here. content should be a dictionary.

@nealkruis nealkruis merged commit 5412f71 into main Feb 14, 2025
14 checks passed
@nealkruis nealkruis deleted the cpp-cleanup branch February 14, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants