Skip to content

Commit

Permalink
Merge pull request #14 from matejak/application
Browse files Browse the repository at this point in the history
Introduce application modes
  • Loading branch information
matejak committed May 1, 2023
2 parents 6054f9a + ebec87e commit 9874122
Show file tree
Hide file tree
Showing 50 changed files with 2,801 additions and 1,851 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
jobs:
validate-ubuntu:
name: Build, Test on Ubuntu 22.04
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Install Deps
uses: mstksg/get-package@master
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"python.testing.pytestPath": "venv/bin/pytest",
"python.defaultInterpreterPath": "venv/bin/python"
}
6 changes: 6 additions & 0 deletions estimage/entities/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ def load(cls, name) -> "Composition":
def _load(self):
raise NotImplementedError()

def get_contained_elements(self):
elements = list(self.elements)
for c in self.compositions:
elements.extend(c.get_contained_elements())
return elements


class MemoryComposition(Composition):
COMPOSITIONS = dict()
Expand Down
Loading

0 comments on commit 9874122

Please sign in to comment.