Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Len(tablecolumn) returns not integer #206

Closed
tammojan opened this issue May 6, 2020 · 1 comment
Closed

Len(tablecolumn) returns not integer #206

tammojan opened this issue May 6, 2020 · 1 comment

Comments

@tammojan
Copy link
Contributor

tammojan commented May 6, 2020

This is python 2.7 specific, and was introduced between casacore 3.3.0 and the latest master.

Reproduce with:

# Create some test dataset
taql 'select rownr() as somenum limit 10 giving numbers.tab'
> from casacore.tables import table, tablecolumn
> tc = tablecolumn(table('numbers.tab'), 'somenum')
Successful readonly open of default-locked table numbers.tab: 1 columns, 10 rows
> len(tc)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: __len__() should return an int

See this travis build. The python3 build against casacore master succeeds.

@tammojan
Copy link
Contributor Author

Fixed by #207

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant