-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add check for valid dimension name before creating new variable (#360)
* fix: unsupported dimension names (#359) Add function to ensure that added variables do not use unvalid dimension names. * Update linopy/model.py More condensed check of dim_names Co-authored-by: Lukas Trippe <[email protected]> * Update linopy/model.py remove unnecessary else block Co-authored-by: Lukas Trippe <[email protected]> * Update linopy/model.py make check_valid_dim_names private Co-authored-by: Lukas Trippe <[email protected]> * Update linopy/model.py make check_valid_dim_names private Co-authored-by: Lukas Trippe <[email protected]> --------- Co-authored-by: Lukas Trippe <[email protected]>
- Loading branch information
1 parent
30ef9ea
commit ede48e3
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters