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

Incorporate revisions; update lattice #8

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
build/
*.egg*/
.doit.*
.pytest_cache/
.vscode/
__pycache__/
lattice/
out/
notes.txt
.lattice/
13 changes: 0 additions & 13 deletions build_hpwh.py

This file was deleted.

135 changes: 0 additions & 135 deletions data_model/examples/AOSmithHPTS50.yaml

This file was deleted.

140 changes: 0 additions & 140 deletions data_model/examples/Rheem2020Prem50.yaml

This file was deleted.

30 changes: 15 additions & 15 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@

data_model = Lattice()


def task_validate_example_files():
'''Validates the example files against the JSON schema (and other validation steps)'''
return {
'file_dep': data_model.examples + [schema.path for schema in data_model.schemas],
'actions': [(data_model.validate_example_files,[])]
}
"""Validates the example files against the JSON schema (and other validation steps)"""
return {
"file_dep": data_model.examples
+ [schema.path for schema in data_model.schemas],
"actions": [(data_model.validate_example_files, [])],
}


def task_generate_cpp_code():
'''Generate CPP headers and source for example schema.'''
"""Generate CPP headers and source for example schema."""
return {
'file_dep': [schema.path for schema in data_model.cpp_schemas] +
[schema.meta_schema_path for schema in data_model.schemas],
'targets': [schema.cpp_header_path for schema in data_model.cpp_schemas] +
[schema.cpp_source_path for schema in data_model.cpp_schemas],
'actions': [
(data_model.generate_cpp_headers, [])
],
'clean': True
"file_dep": [schema.path for schema in data_model.cpp_schemas]
+ [schema.meta_schema_path for schema in data_model.schemas],
"targets": [schema.cpp_header_path for schema in data_model.cpp_schemas]
+ [schema.cpp_source_path for schema in data_model.cpp_schemas],
"actions": [(data_model.generate_cpp_project, [[]])],
"clean": True,
}

Loading