Claude commited on
Commit
6ce84bb
·
1 Parent(s): 9cc0c55

fix: Access ResonanceState.psi_r attribute directly instead of using .get()

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -701,7 +701,7 @@ def process_message(
701
  # ===== STEP 8-9: Resonance & Memory =====
702
  resonance = state.get("resonance") or ResonantContinuityEngine()
703
  psi_state = resonance.compute_psi(coherence=coherence, tension=mean_tension)
704
- psi_r = psi_state.get("psi_r", 0.0)
705
 
706
  memory = state.get("memory") or LivingMemoryKernel()
707
  memory.store_from_turn(
 
701
  # ===== STEP 8-9: Resonance & Memory =====
702
  resonance = state.get("resonance") or ResonantContinuityEngine()
703
  psi_state = resonance.compute_psi(coherence=coherence, tension=mean_tension)
704
+ psi_r = psi_state.psi_r if psi_state else 0.0
705
 
706
  memory = state.get("memory") or LivingMemoryKernel()
707
  memory.store_from_turn(