From 26277c3d56745d04f64be116240609c3f1088877 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 27 Jul 2020 21:44:25 -0700 Subject: Input: Remove n options (#1217) * Input: Remove n options The information in - lasers.nlasers - particles.nspecies - collisions.ncollisions is redundant with their `<...>.names` counter-part and requires users to change info at two locations. We just remove this now since we can query the size of names automatically in the parser. * Examples: remove n Removes: - lasers.nlasers - particles.nspecies - collisions.ncollisions from examples. * QED: Update nspecies * Removed nspecies and nlasers from the Python interface Co-authored-by: Dave Grote --- Python/pywarpx/Lasers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Python/pywarpx/Lasers.py') diff --git a/Python/pywarpx/Lasers.py b/Python/pywarpx/Lasers.py index 2970960ec..60dfaca31 100644 --- a/Python/pywarpx/Lasers.py +++ b/Python/pywarpx/Lasers.py @@ -6,12 +6,11 @@ from .Bucket import Bucket -lasers = Bucket('lasers', nlasers=0, names=[]) +lasers = Bucket('lasers', names=[]) lasers_list = [] def newlaser(name): result = Bucket(name) lasers_list.append(result) - lasers.nlasers += 1 lasers.names.append(name) return result -- cgit v1.2.3