diff options
author | 2020-07-27 21:44:25 -0700 | |
---|---|---|
committer | 2020-07-27 21:44:25 -0700 | |
commit | 26277c3d56745d04f64be116240609c3f1088877 (patch) | |
tree | 2cd823174e2d40a16d9685a73cbf8623e83708f0 /Python/pywarpx/Lasers.py | |
parent | 289cb5b05e8865008fca9e0f0f63379fa80ce704 (diff) | |
download | WarpX-26277c3d56745d04f64be116240609c3f1088877.tar.gz WarpX-26277c3d56745d04f64be116240609c3f1088877.tar.zst WarpX-26277c3d56745d04f64be116240609c3f1088877.zip |
Input: Remove n<something> options (#1217)
* Input: Remove n<something> 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<something>
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 <grote1@llnl.gov>
Diffstat (limited to 'Python/pywarpx/Lasers.py')
-rw-r--r-- | Python/pywarpx/Lasers.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 |