Closed ashleyrback closed 9 years ago
Currently the start of the example script looks as follows:
if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-s", "--save_path", type=str, default="./", help="Enter destination path for .hdf5 spectra files.")
It is missing an import argparse and running the script results in:
import argparse
File "echidna/scripts/multi_ntuple_spectrum.py", line 75, in <module> parser = argparse.ArgumentParser() NameError: name 'argparse' is not defined
The import argparse could be inserted just after if __name__ == "__main__":.
if __name__ == "__main__":
Currently the start of the example script looks as follows:
It is missing an
import argparse
and running the script results in:The
import argparse
could be inserted just afterif __name__ == "__main__":
.