Skip to content

Commit 2e05346

Browse files
committed
add config files
1 parent dfb68de commit 2e05346

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

user_case/config.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from pathlib import Path
2+
3+
import yaml
4+
5+
config_file = Path(r"C:\Users\fouinel\PycharmProjects\OSmOSE_post_processing\user_case\config.yaml")
6+
7+
config = yaml.safe_load(config_file.read_text()) if config_file.exists() else {}
8+
9+
site_colors = config.get("site_colors", {"Site A Haute": "#118B50", "Site B Heugh": "#5DB996", "Site C Chat": "#B0DB9C", "Site D Simone": "#E3F0AF", "CA4": "#80D8C3", "Walde": "#4DA8DA", "Point C": "#932F67", "Point D": "#D92C54", "Point E": "#DDDEAB", "Point F": "#8ABB6C", "Point G": "#456882"})
10+
11+
season_color = config.get("season_color", {"spring": "green", "summer": "darkgoldenrod", "autumn": "orange", "winter": "blue"})

user_case/config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
site_colors:
2+
CA4: '#80D8C3'
3+
Point C: '#932F67'
4+
Point D: '#D92C54'
5+
Point E: '#DDDEAB'
6+
Point F: 'ADMETTONS'
7+
Point G: '#456882'
8+
Site A Haute: '#118B50'
9+
Site B Heugh: '#5DB996'
10+
Site C Chat: '#B0DB9C'
11+
Site D Simone: '#E3F0AF'
12+
Walde: '#4DA8DA'
13+
14+
season_color :
15+
spring: "green"
16+
summer: "darkgoldenrod"
17+
autumn: "orange"
18+
winter: "blue"

0 commit comments

Comments
 (0)