Repository navigation
modeleon 0.2.2 - #3
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release 0.2.2.
mo.MIN/mo.MAXperiod by period — over two or more operands they give a series:mo.MIN(sweep, balance)caps a line in every period andmo.MAX(cash, inputs.min_cash)floors it, inside aloop=Truecontainer too, written as=MIN(…)/=MAX(…)in every column. Over one operand they stay the reduction over the row.openpyxlwithdata_only=True, pandas) shows the model's numbers.SUMPRODUCT—mo.SUM(price * volume)over laid-out rows is written as a live=SUMPRODUCT(…).ExcelView(sheet={'order': ['summary', 'inputs']}).ExcelView(meta={'unit': False})hides unit text everywhere.meta={'numbering': 'section'}numbers sections and lines as1,1.1,1.1.1.check_compat(model, 'excel')names every number baked into a formula, cell by cell.+chain past Excel's 8,192 characters folds intoSUM, bare literals in number formats are quoted, and the workbook carries no green triangles of its writer's own making.Behaviour changes:
mo.MIN(a, b)/mo.MAX(a, b)over two series used to reduce both rows to one number; they now work period by period.ExcelView(meta={'unit': False})used to equal unset; it now hides the unit suffixes too.The full list is in
CHANGELOG.md.