-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
26 lines (18 loc) · 842 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import yaml
from src.core.fit import TGSAnalyzer
from src.experiment.material import Material
from src.experiment.irradiation import Irradiation
from src.experiment.study import HeatLoadStudy
from src.experiment.temperature import Temperature
if __name__ == '__main__':
with open('config.yaml', "r") as file: config = yaml.safe_load(file)
analyzer = TGSAnalyzer(config)
analyzer.fit()
with open('experiment.yaml', "r") as file: experiment_config = yaml.safe_load(file)
material = Material(experiment_config['material'])
irradiation = Irradiation(experiment_config['tgs']['irradiation'], material)
irradiation.plot()
heat_load_study = HeatLoadStudy(experiment_config['heat_load'])
heat_load_study.estimate()
temperature = Temperature(experiment_config['temperature'])
temperature.plot()