<div dir="ltr">Hi all,<div><br></div><div>I decided to do a rough alignment of density maps manually and resample onto a common coordinate system to feed the output mrc files into my fine aligner. But, when I vop resample #1 onGrid #0, I get, </div>
<div>TypeError: Cannot cast ufunc add output from dtype('float32') to dtype('uint8') with casting rule 'same_kind'</div><div><br></div><div>What might I be doing wrong to get this error? As far as I know, all the maps should be uint8 since they were most recently operated on by David Mastronarde's newstack command which outputs them as unsigned bytes.</div>
<div><br></div><div>Thanks,</div><div>Jason<br>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><type 'exceptions.TypeError'> Exception in Tk callback</div><div> Function: <bound method MidasUI.processCommand of <Midas.midas_ui.MidasUI instance at 0x276b2d88>> (type: <type 'instancemethod'>)</div>
<div> Args: (<Tkinter.Event instance at 0x276a2ea8>,)</div><div> Event type: KeyPress (type num: 2)</div><div>Traceback (innermost last):</div><div> File "/opt/UCSF/Chimera64-1.8.1/lib/python2.7/site-packages/Pmw/Pmw_1_3/lib/PmwBase.py", line 1747, in __call__</div>
<div> return apply(self.func, args)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/Midas/midas_ui.py", line 283, in processCommand</div><div> midas_text.makeCommand(cmdText)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/Midas/midas_text.py", line 69, in makeCommand</div>
<div> f(c, args)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeFilter/ChimeraExtension.py", line 24, in vop_cmd</div><div> vop_command(cmdname, args)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeFilter/vopcommand.py", line 91, in vop_command</div>
<div> doExtensionFunc(func, fargs, specInfo = spec)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/Midas/midas_text.py", line 435, in doExtensionFunc</div><div> extFunc(*tuple(processedArgs), **kw)</div>
<div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeFilter/vopcommand.py", line 553, in resample_op</div><div> boundingGrid, False, None, modelId)</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeFilter/vopcommand.py", line 168, in add_operation</div>
<div> scale = scale[i])</div><div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeViewer/volume.py", line 1535, in add_interpolated_values</div><div> m[:,:,:] += values</div><div><type 'exceptions.TypeError'>: Cannot cast ufunc add output from dtype('float32') to dtype('uint8') with casting rule 'same_kind'</div>
<div><br></div><div>================================================</div><div> Event contents:</div><div> char: </div><div> delta: 36</div><div> height: ??</div><div> keycode: 36</div><div> keysym: Return</div>
<div> keysym_num: 65293</div><div> num: ??</div><div> send_event: False</div><div> serial: 39103</div><div> state: 16</div><div> time: 139539396</div><div> type: 2</div><div> widget: .59791048.661335648.802317088.802317376.802317448</div>
<div> width: ??</div><div> x: 159</div><div> x_root: 524</div><div> y: 9</div><div> y_root: 988</div><div><br></div><div>TypeError: Cannot cast ufunc add output from dtype('float32') to dtype('uint8') with casting rule 'same_kind'</div>
<div><br></div><div> File "/opt/UCSF/Chimera64-1.8.1/share/VolumeViewer/volume.py", line 1535, in add_interpolated_values</div><div> m[:,:,:] += values</div><div><br></div><div>See reply log for Python traceback.</div>
</div>-- <br><div dir="ltr">National Center for Macromolecular Imaging, N420<div><div>Baylor College of Medicine, MS BCM125</div></div><div>1 Baylor Plaza</div><div>Houston, TX, USA</div></div>
</div></div>