Spaces:
Sleeping
Sleeping
Delete test_syllabus.py
Browse files- test_syllabus.py +0 -37
test_syllabus.py
DELETED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
import logging
|
| 2 |
-
import sys
|
| 3 |
-
import os
|
| 4 |
-
|
| 5 |
-
# Ensure the current directory is in the python path
|
| 6 |
-
sys.path.append(os.getcwd())
|
| 7 |
-
|
| 8 |
-
from syllabus_processor import SyllabusProcessor
|
| 9 |
-
|
| 10 |
-
# Configure logging
|
| 11 |
-
logging.basicConfig(level=logging.INFO)
|
| 12 |
-
|
| 13 |
-
def test_syllabus_parsing():
|
| 14 |
-
syllabus_text = """Unit 1.0 Introduction (9 Lectures) Self-Learning (SL) 1.1 Data for Graphics. 1.2 Design principles 1.3 Value for visualization 1.4 Categorical 1.5 Time series 1.6 statistical data graphics I 1.7 statistical data graphics II 1.8 Introduction to Visualization Tools I 1.9 Introduction to Visualization Tools II
|
| 15 |
-
Unit 2.0 Graphics Pipeline and Aesthetics and Perception (10 Lectures) 2.1 Primitives: vertices edges and triangles 2.2 Model transforms 2.3 Translations 2.4 Rotations 2.5 scaling 2.6 View transform, Perspective transform, window transform 2.7 Graphical Perception Theory 2.8 Experimentation, and the Application 2.9 Graphical Integrity, Layering and Separation 2.10 Color and Information, Using Space"""
|
| 16 |
-
|
| 17 |
-
print("Initializing SyllabusProcessor...")
|
| 18 |
-
try:
|
| 19 |
-
processor = SyllabusProcessor()
|
| 20 |
-
|
| 21 |
-
print("\nParsing syllabus...")
|
| 22 |
-
units = processor.parse_syllabus(syllabus_text)
|
| 23 |
-
|
| 24 |
-
print("\nParsing Results:")
|
| 25 |
-
for unit, topics in units.items():
|
| 26 |
-
print(f"\nUnit: {unit}")
|
| 27 |
-
print(f"Topics found: {len(topics)}")
|
| 28 |
-
for topic in topics:
|
| 29 |
-
print(f" - {topic}")
|
| 30 |
-
|
| 31 |
-
except Exception as e:
|
| 32 |
-
print(f"Error: {e}")
|
| 33 |
-
import traceback
|
| 34 |
-
traceback.print_exc()
|
| 35 |
-
|
| 36 |
-
if __name__ == "__main__":
|
| 37 |
-
test_syllabus_parsing()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|