Spaces:
Running
Running
devjas1
commited on
Commit
·
56f1555
1
Parent(s):
a044ede
Adds polymer spectra database and improves recommendation methods
Browse filesIntroduces a new polymer spectra database to enhance data availability.
Refactors the learning recommendations methods for improved clarity and functionality, changing method names for consistency and better access.
No functional changes to the logic, solely improves code maintainability.
data/enhanced_data/polymer_spectra.db
ADDED
Binary file (20.5 kB). View file
|
|
modules/advanced_spectroscopy.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
Support dual FTIR + Raman spectroscopy with ATR-FTIR integration"""
|
3 |
|
4 |
import numpy as np
|
5 |
-
from scipy.integrate import trapz
|
6 |
from typing import Dict, List, Tuple, Optional, Any
|
7 |
from dataclasses import dataclass
|
8 |
from scipy import signal
|
|
|
2 |
Support dual FTIR + Raman spectroscopy with ATR-FTIR integration"""
|
3 |
|
4 |
import numpy as np
|
5 |
+
from scipy.integrate import trapezoid as trapz
|
6 |
from typing import Dict, List, Tuple, Optional, Any
|
7 |
from dataclasses import dataclass
|
8 |
from scipy import signal
|
modules/educational_framework.py
CHANGED
@@ -557,7 +557,7 @@ class EducationalFramework:
|
|
557 |
"score": score,
|
558 |
"feedback": feedback,
|
559 |
"level": self.current_user.current_level,
|
560 |
-
"recommendations": self.
|
561 |
}
|
562 |
|
563 |
def get_personalized_learning_path(
|
@@ -599,7 +599,7 @@ class EducationalFramework:
|
|
599 |
|
600 |
return result
|
601 |
|
602 |
-
def
|
603 |
"""Get learning recommendations based on current progress"""
|
604 |
recommendations = []
|
605 |
|
|
|
557 |
"score": score,
|
558 |
"feedback": feedback,
|
559 |
"level": self.current_user.current_level,
|
560 |
+
"recommendations": self.get_learning_recommendations(),
|
561 |
}
|
562 |
|
563 |
def get_personalized_learning_path(
|
|
|
599 |
|
600 |
return result
|
601 |
|
602 |
+
def get_learning_recommendations(self) -> List[str]:
|
603 |
"""Get learning recommendations based on current progress"""
|
604 |
recommendations = []
|
605 |
|