Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
cc4d6ab
refac: introduce consistent convention for linopy operations with sub…
FabianHofmann Feb 9, 2026
d12717b
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Feb 9, 2026
e408b8e
move scalar addition to add_constant
FabianHofmann Feb 11, 2026
1f339e8
add overwriting logic to add constant
FabianHofmann Feb 11, 2026
c47b90b
add join parameter to control alignment in operations
FabianHofmann Feb 11, 2026
72b0ce1
Add le, ge, eq methods with join parameter for constraints
FabianHofmann Feb 11, 2026
d621e4f
Extract constant alignment logic into _align_constant helper
FabianHofmann Feb 11, 2026
130a5df
update notebooks
FabianHofmann Feb 13, 2026
81204c0
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Feb 17, 2026
b616074
update release notes
FabianHofmann Feb 17, 2026
bd04a3a
fix types
FabianHofmann Feb 17, 2026
32ddf91
add regression test
FabianHofmann Feb 18, 2026
1b0252b
fix numpy array dim mismatch in constraints and add RHS dim tests
FabianHofmann Feb 18, 2026
087a3cf
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Feb 19, 2026
91bd515
Update notebook as spec
FBumann Feb 20, 2026
076f29b
Implement consistent coordinate alignment for linopy operations
FBumann Feb 20, 2026
140021e
Added user warning for joins which result in size 0 expressions.py
FBumann Feb 20, 2026
abd3ac2
Update convention and tests. Make notebooks mroe concise
FBumann Feb 20, 2026
1e18984
show assign_coords pattern
FBumann Feb 20, 2026
e7ea997
All join="override" usages in tests have been replaced with assign_co…
FBumann Feb 20, 2026
594efef
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Feb 23, 2026
370e27f
Merge branch 'harmonize-linopy-operations' into harmonize-linopy-oper…
FabianHofmann Mar 4, 2026
eae8e86
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Mar 4, 2026
533092d
remove pandas reindexing warning
FabianHofmann Mar 4, 2026
9051f23
Fix mypy errors: type ignores for xr.align/merge, match override sign…
FabianHofmann Mar 4, 2026
648053b
remove outdated warning tests
FabianHofmann Mar 4, 2026
27cea32
reintroduce expansions of extra rhs dims, fix multiindex alignment
FabianHofmann Mar 5, 2026
8259bf8
refactor test fixtures and use sign constants
FabianHofmann Mar 5, 2026
cff9c3d
add tests for pandas series subset/superset
FabianHofmann Mar 5, 2026
48f9704
test: add TestMissingValues for same-shape constants with NaN entries
FabianHofmann Mar 5, 2026
b5ee937
Merge branch 'master' into harmonize-linopy-operations
FabianHofmann Mar 9, 2026
898ac79
Fix broken test imports, stray docstring char, and incorrect test ass…
FabianHofmann Mar 5, 2026
c0ef60f
Add arithmetic convention doc
FBumann Mar 9, 2026
9be7b96
Enforce strict arithmetic convention: exact join + no extra dims from…
FBumann Mar 9, 2026
d491d2d
Refactor linopy.align to delegate to each type's reindex method
FBumann Mar 9, 2026
59c8b4d
Remove FillWrapper, make reindex type-aware for fill values
FBumann Mar 9, 2026
d0faa7f
Simplify Expression.reindex: fill_value is always a scalar for const
FBumann Mar 9, 2026
2217bfc
Add algebraic property tests and document in notebook
FBumann Mar 9, 2026
4b750b8
Add algebraic property spec and tests
FBumann Mar 9, 2026
332aa1a
Remove Rule 2 for arithmetic, keep for constraint RHS only
FBumann Mar 9, 2026
d4df674
Remove constraint RHS dim check, allow broadcasting everywhere
FBumann Mar 9, 2026
10ecaf6
Document constant preparation pitfalls and xr.set_options
FBumann Mar 9, 2026
7471b73
Document algebraic property limitations for constant preparation
FBumann Mar 9, 2026
086843c
Expand positional alignment section in notebook
FBumann Mar 9, 2026
e392fa3
Address PR review: remove dead code and fix nits
FBumann Mar 10, 2026
12dc34f
Fill NaN with neutral elements in expression arithmetic, preserve NaN…
FabianHofmann Mar 10, 2026
e7e0be3
Fix CI doctest collection by deferring linopy import in test/conftest.py
FabianHofmann Mar 10, 2026
eee7eb8
Fix Self import for Python 3.10 compatibility
FBumann Mar 10, 2026
c0c2d05
Fix mypy errors: use JoinOptions Literal type for join parameters
FBumann Mar 10, 2026
577ee74
Merge master into harmonize-linopy-operations-mixed
FBumann Mar 10, 2026
6b3c218
Handle NaN propagation in arithmetic and fix conftest imports
FBumann Mar 10, 2026
501850f
Restore rhs_nan_mask in to_constraint fallthrough path
FBumann Mar 10, 2026
ae760b1
Restore size-aware alignment defaults from harmonize-linopy-operations
FBumann Mar 10, 2026
2bdb49b
Fix mypy errors in test files: add type annotations and fix Hashable …
FBumann Mar 10, 2026
0b4605a
Add legacy/v1 arithmetic convention with deprecation transition (#607)
FBumann Mar 10, 2026
575a5a0
Merge remote-tracking branch 'origin/master' into harmonize-linopy-op…
FBumann Mar 10, 2026
c39d0d0
Enforce exact user-dim alignment in merge for v1, add escape hatches
FBumann Mar 10, 2026
0ee7872
Fix mypy: wrap scalar in DataArray in _apply_constant_op fast path
FBumann Mar 10, 2026
bed9f8c
Deduplicate convention-specific test files (#608)
FBumann Mar 10, 2026
95012c7
Run all tests under both conventions, split where behavior differs (#…
FBumann Mar 10, 2026
c570e1b
Fix mypy, strengthen tests, add convention + reindex test coverage (#…
FBumann Mar 11, 2026
7df6805
Suppress LinopyDeprecationWarning in tests, add v1 constraint counter…
FBumann Mar 11, 2026
373c8b3
Replace convention fixtures with pytest markers for clean test separa…
FBumann Mar 11, 2026
1450451
Co-locate legacy and v1 tests with behavior-based naming for easier r…
FBumann Mar 11, 2026
0c33599
Add missing v1 counterparts for all legacy_only tests, fix test issues
FBumann Mar 11, 2026
3abe10e
Make piecewise and SOS tests run under both v1 and legacy conventions
FBumann Mar 11, 2026
7ae9b08
Implement v1 NaN convention: absent terms, not absent coordinates
FBumann Mar 12, 2026
65578dd
Rename nan-edge-cases notebook as dev artifact (_prefix)
FBumann Mar 12, 2026
3798f7a
List all structural operations that produce NaN in convention docs
FBumann Mar 12, 2026
1dbecb2
Revert FILL_VALUE["coeffs"] back to NaN
FBumann Mar 12, 2026
539ca00
Add expression-combining edge cases to dev notebook
FBumann Mar 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/arithmetic-convention.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../examples/arithmetic-convention.ipynb"
}
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ This package is published under MIT license.
:caption: User Guide

user-guide
arithmetic-convention
creating-variables
creating-expressions
creating-constraints
coordinate-alignment
sos-constraints
piecewise-linear-constraints
piecewise-linear-constraints-tutorial
Expand Down
3 changes: 3 additions & 0 deletions doc/missing-data.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../examples/missing-data.ipynb"
}
Loading
Loading