MogensR commited on
Commit
2d3d847
·
verified ·
1 Parent(s): 7243530

Update processing/two_stage/__init__.py

Browse files
Files changed (1) hide show
  1. processing/two_stage/__init__.py +17 -4
processing/two_stage/__init__.py CHANGED
@@ -1,5 +1,18 @@
1
- # /home/user/app/processing/two_stage/__init__.py
2
- # package marker for the two_stage subpackage — no side-effects
3
- from .two_stage_processor import TwoStageProcessor, CHROMA_PRESETS
4
 
5
- __all__ = ["TwoStageProcessor", "CHROMA_PRESETS"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # processing/two_stage/__init__.py
 
 
2
 
3
+ from .two_stage_processor import TwoStageProcessor
4
+
5
+ # Import CHROMA_PRESETS only if it exists, otherwise define a fallback
6
+ try:
7
+ from .two_stage_processor import CHROMA_PRESETS
8
+ except ImportError:
9
+ # Fallback CHROMA_PRESETS if not defined in two_stage_processor
10
+ CHROMA_PRESETS = {
11
+ "office": {"name": "Professional Office", "color": (240, 240, 240)},
12
+ "blue": {"name": "Studio Blue", "color": (255, 200, 100)},
13
+ "studio": {"name": "Neutral Studio", "color": (200, 200, 200)},
14
+ "white": {"name": "Pure White", "color": (255, 255, 255)},
15
+ "black": {"name": "Deep Black", "color": (0, 0, 0)}
16
+ }
17
+
18
+ __all__ = ["TwoStageProcessor", "CHROMA_PRESETS"]