aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Lasers.py
blob: b54156ba19060d90a659e0c81013e4e6910f8169 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
from .Bucket import Bucket

lasers = Bucket('lasers', nlasers=0, names=[])
lasers_list = []

def newlaser(name):
    result = Bucket(name)
    lasers_list.append(result)
    lasers.nlasers += 1
    lasers.names.append(name)
    return result