diff --git a/.claude/checkpoints/task-1754576862.json b/.claude/checkpoints/task-1754576862.json new file mode 100644 index 0000000000..ae201c016b --- /dev/null +++ b/.claude/checkpoints/task-1754576862.json @@ -0,0 +1 @@ +{"checkpoint": "task-20250807-142740", "task": "🧠 HIVE MIND COLLECTIVE INTELLIGENCE SYSTEM ══════════════════", "timestamp": "2025-08-07T14:27:42Z", "commit": "8072340752fa2724dc2777f2416b7e65fc497bf9", "github_release": "true"} diff --git a/.claude/checkpoints/task-1754576941.json b/.claude/checkpoints/task-1754576941.json new file mode 100644 index 0000000000..e293175a07 --- /dev/null +++ b/.claude/checkpoints/task-1754576941.json @@ -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"} diff --git a/astropy_fix b/astropy_fix new file mode 160000 index 0000000000..0583c2d3ae --- /dev/null +++ b/astropy_fix @@ -0,0 +1 @@ +Subproject commit 0583c2d3aeb5b0e27d2811e7ef9f16a9832f1d8d diff --git a/reproduce_bug.py b/reproduce_bug.py new file mode 100644 index 0000000000..a5584e2a5e --- /dev/null +++ b/reproduce_bug.py @@ -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) \ No newline at end of file