Skip to content

Commit

Permalink
fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Feb 6, 2024
1 parent f55a9e6 commit 5afbe46
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
1 change: 0 additions & 1 deletion dcm/dcm_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def add_legend(self, svg: SVG) -> None:
box_height,
)


@dataclass_json
@dataclass
class Achievement:
Expand Down
10 changes: 7 additions & 3 deletions dcm_examples/greta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,27 +422,31 @@ levels:
utf8_icon: ⭐⭐⭐⭐
element_names:
tree: Kompetenzbilanz
aspect: Kompetenzaspekt
area: Kompetenzbereich
facet: Kompetenzfacette
aspect: Kompetenzaspekte
area: Kompetenzbereiche
facet: Kompetenzfacetten
level: Lernziel-Stufen
ring_specs:
tree:
text_mode: empty
inner_ratio: 0.0
outer_ratio: 0.1111111111111111
levels_visible: false
aspect:
text_mode: empty
inner_ratio: 0.0
outer_ratio: 0.0
levels_visible: false
area:
text_mode: empty
inner_ratio: 0.0
outer_ratio: 0.0
levels_visible: false
facet:
text_mode: empty
inner_ratio: 0.1111111111111111
outer_ratio: 1.0
levels_visible: false
total_elements:
aspects: 4
areas: 10
Expand Down
10 changes: 7 additions & 3 deletions dcm_examples/greta_text.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,27 +422,31 @@ levels:
utf8_icon: ⭐⭐⭐⭐
element_names:
tree: Kompetenzbilanz
aspect: Kompetenzaspekt
area: Kompetenzbereich
facet: Kompetenzfacette
aspect: Kompetenzaspekte
area: Kompetenzbereiche
facet: Kompetenzfacetten
level: Lernziel-Stufen
ring_specs:
tree:
text_mode: horizontal
inner_ratio: 0.0
outer_ratio: 0.1
levels_visible: false
aspect:
text_mode: curved
inner_ratio: 0.9
outer_ratio: 1.0
levels_visible: false
area:
text_mode: empty
inner_ratio: 0.0
outer_ratio: 0.0
levels_visible: false
facet:
text_mode: angled
inner_ratio: 0.1
outer_ratio: 0.9
levels_visible: false
total_elements:
aspects: 4
areas: 10
Expand Down
7 changes: 3 additions & 4 deletions tests/test_greta.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
RingSpec,
)


class TestGreta(Basetest):
"""
test converting the Greta competence Json Model to
Expand Down Expand Up @@ -104,9 +103,9 @@ def create_greta_json(self, with_text: bool):
)
ct.element_names = {
"tree": "Kompetenzbilanz",
"aspect": "Kompetenzaspekt",
"area": "Kompetenzbereich",
"facet": "Kompetenzfacette",
"aspect": "Kompetenzaspekte",
"area": "Kompetenzbereiche",
"facet": "Kompetenzfacetten",
"level": "Lernziel-Stufen",
}
if with_text:
Expand Down

0 comments on commit 5afbe46

Please sign in to comment.