You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, this is probably more a question than an issue, but I'm trying to use the excel_helper decorator and it's not behaving the way I would have expected, so I'm wondering if I've misunderstood the purpose of it. For example, I wanted to write a columns function. My first idea was to do something along the lines of (ignoring edge cases here):
I would have expected the decorator to force the argument to be an AddressCell or AddressRange, but it doesn't seem to do anything. For example, if I do something like:
I see that when the model tries to evaluate 'E1', the ref argument is (None, None, None) and not the AddressRange I expected. Is there somewhere else in the code where I need to indicate that I expected the columns function to accept references? Or is there a reason why this shouldn't be done?
I noticed that with the column function, even if I remove the excel_helper decorator, it still parses the input as an AddressCell, which makes me think I've misunderstood the point of the decorator.
We can define the columns function with something like this instead, but I thought the reference way would be cleaner:
defcolumns(value):
returnlen(value[0])
The text was updated successfully, but these errors were encountered:
What actually happened and expected behavior
Sorry, this is probably more a question than an issue, but I'm trying to use the
excel_helper
decorator and it's not behaving the way I would have expected, so I'm wondering if I've misunderstood the purpose of it. For example, I wanted to write acolumns
function. My first idea was to do something along the lines of (ignoring edge cases here):I would have expected the decorator to force the argument to be an AddressCell or AddressRange, but it doesn't seem to do anything. For example, if I do something like:
I see that when the model tries to evaluate 'E1', the
ref
argument is(None, None, None)
and not the AddressRange I expected. Is there somewhere else in the code where I need to indicate that I expected thecolumns
function to accept references? Or is there a reason why this shouldn't be done?I noticed that with the
column
function, even if I remove theexcel_helper
decorator, it still parses the input as an AddressCell, which makes me think I've misunderstood the point of the decorator.We can define the
columns
function with something like this instead, but I thought the reference way would be cleaner:The text was updated successfully, but these errors were encountered: