Skip to content

Commit

Permalink
hides areas
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Jan 24, 2024
1 parent 6e63b4b commit 93982e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
28 changes: 12 additions & 16 deletions dcm_examples/greta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ aspects:
- name: Didaktik und Methodik
short_name: DidaktMethodik
id: DidaktikUndMethodik
color_code: '#ECEABE'
facets:
- name: Lerninhalte und -ziele
short_name: DM-Lernziele
Expand Down Expand Up @@ -58,7 +57,6 @@ aspects:
- name: Beratung/Individualisierte Lernunterstützung
short_name: Beratung
id: BeratungIndividualisierteLernunterstuetzung
color_code: '#ECEABE'
facets:
- name: Teilnehmendenorientierung
short_name: Beratung-Orientierung
Expand All @@ -85,7 +83,6 @@ aspects:
- name: Kommunikation und Interaktion
short_name: KommInterakt
id: KommunikationUndInteraktion
color_code: '#ECEABE'
facets:
- name: Moderation und Steuerung von Gruppen
short_name: KI-Gruppen
Expand Down Expand Up @@ -113,7 +110,6 @@ aspects:
- name: Organisation
short_name: Organisation
id: Organistion
color_code: '#ECEABE'
facets:
- name: Kooperation mit den Auftraggebenden/Arbeitgebenden
short_name: Org-Auftraggeber
Expand Down Expand Up @@ -142,7 +138,6 @@ aspects:
- name: Feldbezug
short_name: Feldbezug
id: Feldbezug
color_code: '#ECEABE'
facets:
- name: Adressatinnen und Adressaten
short_name: FB-Adressaten
Expand Down Expand Up @@ -178,7 +173,6 @@ aspects:
- name: Berufsethos
short_name: Berufsethos
id: Berufsethos
color_code: '#ECEABE'
facets:
- name: Menschenbilder
short_name: BE-Menschenbild
Expand All @@ -200,7 +194,6 @@ aspects:
- name: Berufsbezogene Überzeugungen
short_name: Berufsueberzeugungen
id: BerufsbezogeneUeberzeugungen
color_code: '#ECEABE'
facets:
- name: Eigenes Rollenbewusstsein
short_name: BU-Rollenbewusstsein
Expand Down Expand Up @@ -228,7 +221,6 @@ aspects:
- name: Motivationale Orientierungen
short_name: MotOrient
id: MotivationaleOrientierungen
color_code: '#ECEABE'
facets:
- name: Selbstwirksamkeitsüberzeugungen
short_name: MO-Selbstwirksamkeit
Expand All @@ -249,7 +241,6 @@ aspects:
- name: Selbstregulation
short_name: Selbstregul
id: Selbstregulation
color_code: '#ECEABE'
facets:
- name: Umgang mit Feedback und Kritik
short_name: SR-Feedback
Expand All @@ -271,7 +262,6 @@ aspects:
- name: Berufspraktische Erfahrung
short_name: BerufspraktErf
id: BerufspraktischeErfahrung
color_code: '#ECEABE'
facets:
- name: Reflexion des eigenen Lehrhandelns
short_name: BE-Reflexion
Expand Down Expand Up @@ -302,21 +292,27 @@ levels:
- name: Level1
short_name: Level1
id: Level1
color_code: '#C8D575'
color_code: '#ECEABE'
level: 1
utf8_icon:
- name: Level2
short_name: Level2
id: Level2
color_code: '#AEBF3F'
color_code: '#C8D575'
level: 2
utf8_icon: ⭐⭐
- name: Level3
short_name: Level3
id: Level3
color_code: '#7D8A2C'
color_code: '#AEBF3F'
level: 3
utf8_icon: ⭐⭐⭐
- name: Level4
short_name: Level4
id: Level4
color_code: '#7D8A2C'
level: 4
utf8_icon: ⭐⭐⭐⭐
element_names:
tree: Kompetenzbilanz
aspect: Kompetenzaspekt
Expand All @@ -331,10 +327,10 @@ relative_radius:
- 0.0
- 0.0
area:
- 0.1111111111111111
- 0.3333333333333333
- 0.0
- 0.0
facet:
- 0.3333333333333333
- 0.1111111111111111
- 1.0
total_elements:
aspects: 4
Expand Down
17 changes: 8 additions & 9 deletions tests/test_greta.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,24 +101,24 @@ def test_greta_json(self):
"level": "Lernfortschritt",
}
ct.relative_radius = {
"tree": (0.0, 1 / 9),
"tree": (0.0, 1/9),
"aspect": (0.0, 0.0),
"area": (1 / 9, 3 / 9),
"facet": (3 / 9, 9 / 9),
"area": (0.0, 0.0),
"facet": (1 / 9, 9 / 9),
}
# Define color codes for competence levels
level_color_codes = {
0: "#888888", # Grey for level 0
1: "#C8D575", # Olive Green for level 1
2: "#AEBF3F", # Medium Green for level 2
3: "#7D8A2C", # Dark Green for level 3
1: "#ECEABE", # Light Green for areas 1
2: "#C8D575", # Olive Green for level 2
3: "#AEBF3F", # Medium Green for level 3
4: "#7D8A2C", # Dark Green for level 4
}
# Define the color codes for areas:
aspect_color_codes = ["#868378", "#aba89e", "#c9c7c0", "#e8e6e1"]

# Define icons for competence levels (replace with actual icon names)
utf8_icons = {0: "❓", 1: "⭐", 2: "⭐⭐", 3: "⭐⭐⭐"}
# , 4: "⭐⭐⭐⭐"}
utf8_icons = {0: "❓", 1: "⭐", 2: "⭐⭐", 3: "⭐⭐⭐", 4: "⭐⭐⭐⭐"}
for level in range(len(utf8_icons)):
cl = CompetenceLevel(
name=f"Level{level}",
Expand All @@ -141,7 +141,6 @@ def test_greta_json(self):
area = CompetenceArea(
id=g_area["ID"],
name=g_area["Name"],
color_code="#ECEABE", # Light Green for areas
)
aspect.areas.append(area)
for f_index, g_facet in enumerate(g_area["Kompetenzfacetten"]):
Expand Down

0 comments on commit 93982e9

Please sign in to comment.