Project

General

Profile

Actions

Bug #5079

closed

Mean/std dev filtration failing

Added by Priyamvada Acharya over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Carl Negro
Category:
-
Target version:
Start date:
07/11/2017
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.3
Show in known bugs:
No
Workaround:

Description

Mean/std dev filtration is failing with the following error message:
TypeError: unsupported operand type(s) for -: 'str' and 'int'

Here is the complete log:

... Time stamp: 17jul11g14
... Function name: stackFilter
... Appion directory: /opt/myamisnap/lib
... Processing hostname: node22
... Using split database
Connected to database: 'nyap_31'
... Committing data to database
... Run directory: /gpfs/appion/pacharya/17jul10k/stacks/meanfilt868_3
!!! WARNING: directory '/gpfs/appion/pacharya/17jul10k/stacks/meanfilt868_3' already exists.
... Writing function log to: stackFilter.log
... Uploading ScriptData....
... Found 1 processors on this machine
... Running Appion version 'trunk'
... querying stack particles from stackid=868 at Tue Jul 11 06:14:40 2017
... sorting particles
... received 128442 stack particles in 33.68 sec
... Getting stack data for stackid=868
Old stack info: 'test'
Traceback (most recent call last):
File "/opt/myamisnap/bin/stackFilter.py", line 103, in <module>
subStack.start()
File "/opt/myamisnap/bin/stackFilter.py", line 77, in start
f.write('%i\n' % partnum-1)
TypeError: unsupported operand type(s) for -: 'str' and 'int'
Actions #1

Updated by Ashleigh Raczkowski over 7 years ago

Getting the same error. I'm guessing this is related to my last bug report?

Actions #2

Updated by Anchi Cheng over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Neil Voss
  • Priority changed from Normal to Urgent
  • Target version set to Appion/Leginon 3.3
  • Affected Version changed from Appion/Leginon 3.2 to Appion/Leginon 3.3
Actions #3

Updated by Neil Voss over 7 years ago

I did fix that, but something went weird with my commit. I am going to fix it in myami-beta and commit it directly.

Actions #4

Updated by Neil Voss over 7 years ago

  • Assignee changed from Neil Voss to Carl Negro

Wait, this is fixed in myami-beta and the line does not match current code:

old line:

f.write('%i\n' % partnum-1)

current myami-beta line:

f.write('%d\n'%(partnum-1))

Something weird with your local copy?

Actions #5

Updated by Anchi Cheng over 7 years ago

Neil, I think you checked just after Carl commited the fix into beta.

Actions #6

Updated by Neil Voss over 7 years ago

I did a fresh git clone and now it shows correctly. I changed the code to exactly match the trunk with commit commit:912494af

Actions #7

Updated by Anchi Cheng almost 7 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF