diff options
author | Andrea Censi <acensi@ethz.ch> | 2022-05-11 19:40:29 +0200 |
---|---|---|
committer | Andrea Censi <acensi@ethz.ch> | 2022-05-11 19:40:29 +0200 |
commit | 2d2bf6ef16898856c343708c667daa856d7fa36a (patch) | |
tree | 7335976fc7bb1b79d8b8812886f94715fe59ed95 | |
parent | minor (diff) | |
parent | minor (diff) | |
download | act4e-2d2bf6ef16898856c343708c667daa856d7fa36a.tar.gz act4e-2d2bf6ef16898856c343708c667daa856d7fa36a.zip |
Merge branch 'alphubel-prod' of github.com:ACT4E/ACT4E-exercises-template into alphubel-prod
Diffstat (limited to '')
-rw-r--r-- | .devcontainer/Dockerfile | 6 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | src/act4e_solutions/semigroups_morphisms_representation.py | 27 |
3 files changed, 32 insertions, 3 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 120994e..601075b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -26,8 +26,8 @@ COPY .devcontainer/act4e-check /usr/local/bin RUN chmod +x /usr/local/bin/act4e-check -COPY src src -COPY setup.py . +# COPY src src +# COPY setup.py . -RUN python3 -m pip install -e . +# RUN python3 -m pip install -e . @@ -3,3 +3,5 @@ __pycache__ *.egg-info .DS_Store .python-version +.vscode/*log +.out-results/*html
\ No newline at end of file diff --git a/src/act4e_solutions/semigroups_morphisms_representation.py b/src/act4e_solutions/semigroups_morphisms_representation.py new file mode 100644 index 0000000..43df89f --- /dev/null +++ b/src/act4e_solutions/semigroups_morphisms_representation.py @@ -0,0 +1,27 @@ +from typing import Any, TypeVar + +import act4e_interfaces as I + + +class SolFiniteSemigroupMorphismRepresentation(I.FiniteSemigroupMorphismRepresentation): + def load(self, h: I.IOHelper, s: I.FiniteSemigroupMorphism_desc) -> I.FiniteSemigroupMorphism[Any, Any]: + raise NotImplementedError() + + def save(self, h: I.IOHelper, m: I.FiniteSemigroupMorphism[Any, Any]) -> I.FiniteSemigroupMorphism_desc: + raise NotImplementedError() + + +class SolFiniteMonoidMorphismRepresentation(I.FiniteMonoidMorphismRepresentation): + def load(self, h: I.IOHelper, s: I.FiniteMonoidMorphism_desc) -> I.FiniteMonoidMorphism[Any, Any]: + raise NotImplementedError() + + def save(self, h: I.IOHelper, m: I.FiniteMonoidMorphism[Any, Any]) -> I.FiniteMonoidMorphism_desc: + raise NotImplementedError() + + +class SolFiniteGroupMorphismRepresentation(I.FiniteGroupMorphismRepresentation): + def load(self, h: I.IOHelper, s: I.FiniteGroupMorphism_desc) -> I.FiniteGroupMorphism[Any, Any]: + raise NotImplementedError() + + def save(self, h: I.IOHelper, m: I.FiniteGroupMorphism[Any, Any]) -> I.FiniteGroupMorphism_desc: + raise NotImplementedError() |