Comments (3)
Why Koala algorithm reevaluates each time ??
Le 27 avr. 2016 à 14:48, iOiurson [email protected] a écrit :
Formulas like:
=(totalDecom-SUM(INDEX(FA_RecCostsDecom;1;1):INDEX(FA_RecCostsDecom;1;CA_Periods-1)))*Deprec_UOPRates when calculated on a cell referenced as FA_RecCostsDecom triggers infinite loop.This is because currently our koala algorithm reevaluates a range each time it sees it in a formula.
A good way to handle this would be to store Ranges (in a koala sense) in a Spreadsheet.range_dict object so that when koala encounters a Range it already knows, it can directly use the values without reevaluating the Range (then avoiding the infinite loop).2 problems though:
this means the way to initialize Ranges must be adjusted so that a Range is created in the dict on the first element inserted (otherwise the previous formula wouldn't work either)
this might be a lot of effort for a few cases, since this might not happen that many times
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub #8
from koala.
Imagine the case:
In cell A1 you write =A1
, koala would compile this into eval_cell('A1')
, leading to an infinite loop.
Excel prevents this behaviour by displaying a warning, explaing how to treat Circular references.
But in our case, this is not a real circular reference, since we call the previous cell in the current range. Still, koala doesn't how to compile this, and will end up looping infinitely.
from koala.
Sorry, I thought you were speaking about reevaluating each range for each call
Le 27 avr. 2016 à 14:56, iOiurson [email protected] a écrit :
Imagine the case:
In cell A1 you write =A1, koala would compile this into eval_cell('A1'), leading to an infinite loop.
Excel prevents this behaviour by displaying a warning, explaing how to treat Circular references.But in our case, this is not a real circular reference, since we call the previous cell in the current range. Still, koala doesn't how to compile this, and will end up looping infinitely.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub #8 (comment)
from koala.
Related Issues (20)
- Roll back merge of ExcelCompiler and Spreadsheet objects HOT 4
- How to receive only value changed cells HOT 8
- When there is no argument for a function, Koala exits. HOT 3
- IF(A1=FALSE) treated same as IF(A1=0) HOT 1
- TypeError: expected string or bytes-like object HOT 2
- save updated cell values as an excel file HOT 2
- networkx 2.4 breaks koala HOT 3
- Cannot import name 'unicode' from 'openpyxl.compat' HOT 1
- sp.set_value() not called properly on named cell
- What is the difference between this and pycel? HOT 1
- References to "Range" method in Spreadsheet HOT 1
- Koala is getting increasingly difficult to manage -- re-write? HOT 30
- Performance testing and benchmark HOT 4
- not enough values to unpack koala/ast/__init__.py", line 397, in prepare_pointer
- AttributeError: 'Spreadsheet' object has no attribute 'Range' HOT 1
- Using Koala to reduce the unnecessary sheets of excel file
- Double negative/minus operator causes IndexError HOT 1
- Add support for SUBSTITUTE
- Attribute error: 'Spreadsheet' object has no attribute 'clean_pointers'
- AttributeError: 'DiGraph' object has no attribute 'node' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from koala.