🔖 Checkpoint: Edit /workspaces/claude-code-flow/reproduce_bug.py

This commit is contained in:
rUv committed 2025-08-07 14:29:05 +00:00
1 parent 8072340752
commit dfc0f38378
4 files changed
+39

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250807-142740", "task": "🧠 HIVE MIND COLLECTIVE INTELLIGENCE SYSTEM ══════════════════", "timestamp": "2025-08-07T14:27:42Z", "commit": "8072340752fa2724dc2777f2416b7e65fc497bf9", "github_release": "true"}
+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250807-142900", "task": "add more options for various non-interactive modes for claude-flow including swarm and sparc, and va", "timestamp": "2025-08-07T14:29:01Z", "commit": "8072340752fa2724dc2777f2416b7e65fc497bf9", "github_release": "true"}
Submodule
+1
Submodule astropy_fix added at 0583c2d3ae.
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env python
"""
Reproduce astropy issue #12907: separability_matrix incorrect for nested CompoundModels
"""
from astropy.modeling import models as m
from astropy.modeling.separable import separability_matrix
# Create the nested compound model as described in the issue
cm = m.Linear1D(10) & m.Linear1D(5)
nested_cm = m.Mapping([0, 1, 0, 1]) | cm
print("Nested CompoundModel structure:")
print(f"Model: {nested_cm}")
print()
# Get the separability matrix
sep_matrix = separability_matrix(nested_cm)
print("Current separability_matrix output:")
print(sep_matrix)
print()
# Expected output should be:
# [[True, True], [True, True]]
# But currently returns:
# [[True, False], [False, True]]
print("Expected separability_matrix:")
print("[[True, True], [True, True]]")
print()
# Additional test case with different nesting
cm2 = m.Gaussian2D(1, 2, 3, 4, 5) + m.Planar2D(1, 2, 3)
print("Another nested model:")
print(f"Model: {cm2}")
sep_matrix2 = separability_matrix(cm2)
print("Separability matrix:")
print(sep_matrix2)