Commit 2d4a507
fix: allow expand() on clustered FlowSystem without a solution (#646)
* fix: allow expand() on clustered FlowSystem without a solution
Previously, expand() required a solved FlowSystem, which prevented
using it to inspect expanded data (e.g. clustering_data()) without
solving first. Now the solution expansion is skipped when no solution
is present.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* test: update test to expect expand() succeeds without solution
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 103be48 commit 2d4a507
2 files changed
Lines changed: 20 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
817 | 818 | | |
818 | 819 | | |
819 | 820 | | |
| |||
1899 | 1900 | | |
1900 | 1901 | | |
1901 | 1902 | | |
1902 | | - | |
| 1903 | + | |
1903 | 1904 | | |
1904 | 1905 | | |
1905 | 1906 | | |
1906 | 1907 | | |
1907 | 1908 | | |
1908 | 1909 | | |
1909 | | - | |
1910 | | - | |
1911 | 1910 | | |
1912 | 1911 | | |
1913 | 1912 | | |
| |||
1932 | 1931 | | |
1933 | 1932 | | |
1934 | 1933 | | |
1935 | | - | |
1936 | 1934 | | |
1937 | 1935 | | |
1938 | 1936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
| 214 | + | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
225 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
0 commit comments