[chimerax-users] [new-map-options] Error when using the "subregion" option

Tom Goddard goddard at sonic.net
Fri Nov 13 10:48:12 PST 2020


Hi Arthur,

  That is a bug and I will fix it, probably today.

  It is easy to avoid.  The map EMDB 22000 has grid size 300.  But ChimeraX (and Chimera) uses grid indices that start at 0, so the index range along each axis is 0-299, so the copy command

	volume copy #1 subregion 150,150,150,300,300,300

is asking to include grid index 300 which is one beyond the edge of the map.  Still it should clamp it to 299.  But if you use the command

	volume copy #1 subregion 150,150,150,299,299,299

it works correctly and gives a grid size 150 map as expected.

	Tom


> On Nov 13, 2020, at 10:14 AM, Arthur Ecoffet <arthurecoffet at gmail.com> wrote:
> 
> Dear ChimeraX developers,
> 
> When using the "subregion" option for different map-related functions (volume morph, volume copy) I encountered the following error : 
> ValueError: could not broadcast input array from shape (150,150,150) into shape (151,151,151)
> 
> File "C:\Program Files\ChimeraX 1.1\bin\lib\site-packages\chimerax\map\volume.py", line 982, in writable_copy
> g.array[:,:,:] = self.region_matrix(r)
> 
> If you want to reproduce the error, I worked on EMDB22000 and I typed in the console : 
> volume copy #1 subregion 150,150,150,300,300,300 
> alternatively 
> volume morph #1 #2  subregion 150,150,150,300,300,300  raises the same error. 
> 
> I tried on two versions of ChimeraX (including the last stable from September) and got the same error twice. 
> Would you have any idea how to solve this? 
> 
> Thanks very much, 
> Best,
> Arthur 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201113/cd9f4461/attachment.html>


More information about the ChimeraX-users mailing list