Hi Gian,

yes, the from_numpy method is new in PyMOL 1.7. But the underlying import 
functionality is not new, so you could basically copy the code from that method 
and create a valid brick instance yourself. Have a look at:

https://sourceforge.net/p/pymol/code/HEAD/tree/trunk/pymol/modules/chempy/brick.py#l28

Cheers,
 Thomas

On 12 Jun 2014, at 16:40, Gianluca Santoni <gianluca.sant...@ibs.fr> wrote:

> Hi everyone,
> I was following this instructions to load a nparray as a map, but I get 
> the error:
> class Brick has no attribute 'from_numpy'
> 
> Is it a new feature in chempy, or am I missing something?
> Cheers,
> Gian
> 
> On 2/3/14 3:01 AM, Thomas Holder wrote:
>> Hi Esben,
>> 
>> On 02 Feb 2014, at 12:27, Esben Jannik Bjerrum <esbenjan...@rocketmail.com> 
>> wrote:
>>> ... I also found a nifty example from brick01.py in the examples directory, 
>>> but to get it to render in linux, numpy needs to be compiled into PyMOL, 
>>> does this also hold for Your solution Thomas?
>> 
>> yes, PyMOL needs to be compiled with numpy for chempy.brick support. 
>> Incentive PyMOL ships with numpy support, and open-source PyMOL has numpy 
>> support if it can "import numpy" during compilation.
>> 
>> Cheers,
>>   Thomas
> 
> -- 
> Gianluca Santoni,
> Dynamop Group
> Institut de Biologie Structurale
> 6 rue Jules Horowitz                                                  
> 38027 Grenoble Cedex 1                                                
> France

-- 
Thomas Holder
PyMOL Developer
Schrödinger, Inc.


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Reply via email to