hohlraum / gdsCAD

A simple but powerful Python package for creating photolithography masks in the GDSII format.
GNU General Public License v3.0
88 stars 52 forks source link

Small fix to displacement function #59

Open yausern opened 6 years ago

yausern commented 6 years ago

"+=" is a bad way of adding together np.array's of potentially different dtype. It throws and error when trying to do a displacement with dtype float. Using a more explicit "+" corrects the bug.