[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AttributeError in collision_detection
From: |
Ahmad Reza Motezakker |
Subject: |
Re: AttributeError in collision_detection |
Date: |
Fri, 28 Feb 2020 12:46:28 +0000 |
Dear Jean-Noel,
Thank you very much. Yes, I recompiled it and it works.
Best Regards,
Ahmad Reza
________________________________________
From: Espressomd-users <espressomd-users-bounces+armot=address@hidden> on
behalf of Jean-Noël Grad <address@hidden>
Sent: Friday, February 28, 2020 1:26 PM
To: address@hidden
Subject: Re: AttributeError in collision_detection
Dear Ahmad,
You probably compiled espresso with a custom myconfig.hpp file that is
missing feature COLLISION_DETECTION. Add the following line to the
myconfig.hpp file and recompile espresso:
#define COLLISION_DETECTION
Best regards,
JN
On 2/28/20 1:13 PM, Ahmad Reza Motezakker wrote:
> Dear EspressoMD users,
>
>
> I am trying to define collision in my system and I face attribute error as:
>
> AttributeError: 'NoneType' object has no attribute 'set_params'
>
>
>
> Below, please find the lines of the code which is related to the
> collision detection.
>
> ---
>
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call last)
> <ipython-input-15-4acfe63d1151> in<module>
> 5 bond_centers= interactions.HarmonicBond(k=1000, r_0=0.2)
> 6 system.bonded_inter.add(bond_centers)
> ----> 7system.collision_detection.set_params(mode="bind_centers",
> distance=0.2, bond_centers=bond_centers)
> 8
> 9 #system.bonded_inter.add(fene)
>
> AttributeError: 'NoneType' object has no attribute 'set_params'
>
> ----
>
> I really be thankful if you could help me with this.
>
>
> Best Regards,
>
> Ahmad Reza
>