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

[FIX] TimeVariable: don't crash Data Table when reloading and Visualize ... #1760

Merged
merged 1 commit into from
Nov 18, 2016

Conversation

kernc
Copy link
Contributor

@kernc kernc commented Nov 18, 2016

Issue

The issue was with DataTable widget with Visualize continuous values enabled and reloading a timevariable as numeric and back. Now seems to work.

Fixes #1734 (comment)

Traceback (most recent call last):
  File "/home/lan/dev/orange3/Orange/widgets/utils/itemmodels.py", line 1112, in data
	return coldesc.format(instance)
  File "/home/lan/dev/orange3/Orange/widgets/utils/itemmodels.py", line 863, in format_dense
	return str(instance[var])
  File "/home/lan/dev/orange3/Orange/data/variable.py", line 166, in __str__
	return self.variable.str_val(self)
  File "/home/lan/dev/orange3/Orange/data/variable.py", line 924, in repr_val
	return str(val)
  File "/home/lan/dev/orange3/Orange/data/variable.py", line 166, in __str__
	return self.variable.str_val(self)
...
RecursionError: maximum recursion depth exceeded while calling a Python object
Includes
  • Code changes
  • Tests

@kernc kernc changed the title TimeVariable: don't crash Data Table when reloading and visualize con… [FIX] TimeVariable: don't crash Data Table when reloading and Visualize ... Nov 18, 2016
@codecov-io
Copy link

codecov-io commented Nov 18, 2016

Current coverage is 88.91% (diff: 100%)

Merging #1760 into master will not change coverage

@@             master      #1760   diff @@
==========================================
  Files            82         82          
  Lines          8847       8847          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           7866       7866          
  Misses          981        981          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update b896110...f46140d

@astaric
Copy link
Member

astaric commented Nov 18, 2016

Can you perhaps reproduce the issue in a test and include that test in the PR?

…tinuous

Fixes biolab#1734 (comment)

	Traceback (most recent call last):
	  File "/home/lan/dev/orange3/Orange/widgets/utils/itemmodels.py", line 1112, in data
		return coldesc.format(instance)
	  File "/home/lan/dev/orange3/Orange/widgets/utils/itemmodels.py", line 863, in format_dense
		return str(instance[var])
	  File "/home/lan/dev/orange3/Orange/data/variable.py", line 166, in __str__
		return self.variable.str_val(self)
	  File "/home/lan/dev/orange3/Orange/data/variable.py", line 924, in repr_val
		return str(val)
	  File "/home/lan/dev/orange3/Orange/data/variable.py", line 166, in __str__
		return self.variable.str_val(self)
	...
	RecursionError: maximum recursion depth exceeded while calling a Python object
@kernc
Copy link
Contributor Author

kernc commented Nov 18, 2016

I can't. Managed. Painful to invest too much time into what I'm eagerly working to replace with pandas. 😄

@astaric astaric merged commit 050004c into biolab:master Nov 18, 2016
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

Successfully merging this pull request may close these issues.

4 participants