snoplusuk / echidna

MIT License
4 stars 12 forks source link

Missing argaprse import in `multi_ntuple_spectrum` #61

Closed ashleyrback closed 9 years ago

ashleyrback commented 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:

  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__":.