HamishGBrown / MuSTEM

Open source version of the MuSTEM multislice electron microscopy simulation code, developed at the University of Melbourne.
http://tcmp.ph.unimelb.edu.au/mustem/muSTEM.html
GNU General Public License v3.0
54 stars 26 forks source link

Added check to ensure pacbed_pattern is allocated before writing to it #18

Open douglowe opened 5 years ago

douglowe commented 5 years ago

This code follows the setup of the other checks in your code that pacbed is True, before writing to the pacbed_pattern array. It ensures that a "writing to unallocated pointer" error does not occur.