Spring 0.83.1449 minor bug in test_segment.py

17 views
Skip to first unread message

Jon Diprose

unread,
Jun 15, 2015, 7:00:13 AM6/15/15
to emsp...@googlegroups.com
I've just installed the pre-built linux version of spring 0.83.1449 and one of the test cases failed. That turned out to be because I had a '.' in one of the directories further up the path and test_segment.py was assuming that the only dot would be the one separating the suffix from the rest of the filename during its clean-up phase. Fortunately it didn't do any damage. Patch attached.

It also looks like there's also a bug in e2version.py - the bit of information you ask for says:

[~]$ /apps/strubi/spring/0.83.1449/bin/spring --version && /apps/strubi/spring/0.83.1449/bin/springenv e2version.py
Spring environment loaded.
GUI from package Emspring-0.83.1449
Spring environment loaded.
EMAN 2.1 alpha2 (CVS 2013/08/07 17:01:09)
Your EMAN2 is running on:
Traceback (most recent call last):
  File "/gpfs0/apps/strubi/spring/0.83.1449/parts/EMAN2/bin/e2version.py", line 90, in <module>
    main()
  File "/gpfs0/apps/strubi/spring/0.83.1449/parts/EMAN2/bin/e2version.py", line 53, in main
    print 'Your EMAN2 is running on: ', result.split('"')[1], os.uname()[2], os.uname()[-1]
IndexError: list index out of range

For info:

[~]$ cat /etc/lsb-release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
[~]$ cat /etc/redhat-release
CentOS release 6.5 (Final)
[~]$ uname -a
Linux rescomp1 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Jon
spring-0.83.1449-000-test_segment-path.patch

Carsten Sachse

unread,
Jun 15, 2015, 7:51:40 AM6/15/15
to emsp...@googlegroups.com, jonathan...@gmail.com
Dear Jon,

Thanks for posting the fix. This is highly appreciated. I shall update it for the next release.

Best wishes,


Carsten
Reply all
Reply to author
Forward
0 new messages