Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Cannot load old sessions #212

Closed
phidahl opened this issue Mar 1, 2018 · 7 comments
Closed

Cannot load old sessions #212

phidahl opened this issue Mar 1, 2018 · 7 comments
Labels

Comments

@phidahl
Copy link
Contributor

phidahl commented Mar 1, 2018

[Window Title]
Error

[Content]
Traceback (most recent call last):
File "shapeout\gui\frontend.py", line 525, in OnMenuLoad
File "shapeout\gui\session_ui.py", line 48, in open_session
File "shapeout\gui\session_ui.py", line 72, in open_session_worker
File "shapeout\session\conversion.py", line 332, in compatibilitize_session
File "shapeout\session\conversion.py", line 100, in cleanup_old_config_sections
File "site-packages\dclab\rtdc_dataset\config.py", line 81, in init
File "site-packages\dclab\rtdc_dataset\config.py", line 219, in load_from_file
ValueError: invalid literal for int() with base 10: '0.000000000000'

[OK]

Is there maybe a workaraound? change something in the session file or so?

@phidahl
Copy link
Contributor Author

phidahl commented Mar 1, 2018

And the 0.8.4.dev5 gives me this. The data contains columns in the tdms that were added later. with the name userdef1 and userdef2

[Window Title]
Error

[Content]
Traceback (most recent call last):
File "shapeout\gui\frontend.py", line 528, in OnMenuLoad
File "shapeout\gui\session_ui.py", line 48, in open_session
File "shapeout\gui\session_ui.py", line 153, in open_session_worker
File "shapeout\session\rw.py", line 131, in load
File "site-packages\dclab\rtdc_dataset\fmt_hierarchy.py", line 280, in apply_filter
File "site-packages\dclab\rtdc_dataset\core.py", line 177, in apply_filter
File "site-packages\dclab\rtdc_dataset\filter.py", line 138, in update
File "site-packages\dclab\rtdc_dataset\fmt_hierarchy.py", line 230, in getitem
File "site-packages\dclab\rtdc_dataset\core.py", line 107, in getitem
KeyError: u"Feature 'userdef1' does not exist!"

[OK]

@paulmueller
Copy link
Member

I need more information. Best would be if you gave me the session file and the experimental data so I can debug this.

Did you happen to download the 0.8.4 release when it was still a pre-release on GitHub (I had to rebuild the release because of a similar error, sorry for the inconvenience)? Please check the version of dclab (Help->Software). It should be dclab 0.3.2.dev2 for ShapeOut 0.8.4. If this is not the case, please re-download 0.8.4 from GitHub and you will probably get the second error.

@paulmueller paulmueller added the bug label Mar 1, 2018
@phidahl
Copy link
Contributor Author

phidahl commented Mar 2, 2018

Here is a session file and the source data. It contains the columns userdef1 and userdef2 that seem to make problems.

https://zmd.craban.de/seafile/f/c91bd015d3e04211ab70/?dl=1

@paulmueller
Copy link
Member

paulmueller commented Mar 2, 2018

I cannot reproduce this bug on Linux, but the labelling of the user defined columns in the tdms file looks wrong. In dclab, these are imported from tdms files with the key "userDefX". The present tdms file has the keys "UserDefX" (with a capital "U") and are thus ignored by dclab/ShapeOut. If you added the user-defined columns by hand, please try again with a lower case "u".

@phidahl
Copy link
Contributor Author

phidahl commented Mar 5, 2018

The first error I posted only occurs for the initial release of 0.8.4

The second in newer version. Renaming the columns to userDef1 and userDef2 didn't help.

paulmueller added a commit that referenced this issue Mar 5, 2018
@paulmueller
Copy link
Member

Should work with the latest version of dclab:
https://ci.appveyor.com/project/paulmueller/shapeout/build/1.0.847/job/6s8goesrtmgf7u5r

@phidahl
Copy link
Contributor Author

phidahl commented Mar 7, 2018

It works.

@phidahl phidahl closed this as completed Mar 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants