From 82855208f9bbe83f4e3ccffbbe969f53c4ba6a08 Mon Sep 17 00:00:00 2001 From: hakkimakki Date: Tue, 19 Mar 2019 21:59:31 +0100 Subject: [PATCH] Update electromagnetic_field.py --- pyparticles/forces/electromagnetic_field.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyparticles/forces/electromagnetic_field.py b/pyparticles/forces/electromagnetic_field.py index 5e1b41f..c3c36f9 100644 --- a/pyparticles/forces/electromagnetic_field.py +++ b/pyparticles/forces/electromagnetic_field.py @@ -52,10 +52,10 @@ def __init__( self , size , dim=3 , m=None , q=None , Consts=1.0 ): self.__Cr = np.zeros( ( size , dim ) ) - if m != None : + if m is not None : self.set_masses( m ) - if q != None : + if q is not None : self.set_charges( q ) self.__el_fields = dict()