Skip to content

Commit

Permalink
call main function
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Alan Weaver committed Dec 2, 2015
1 parent 9a64819 commit 0fb2e94
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pydl/pydlspec2d/spec1d/template_input.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import print_function


def template_input(options):
Expand Down Expand Up @@ -85,7 +84,7 @@ def template_input(options):
pcaflux = pickle.load(f)
else:
slist = par['EIGENOBJ']
spplate = readspec(slist.plate, slist.fiberid, mjd=slist.mjd, align=True)
spplate = readspec(slist.plate, mjd=slist.mjd, fiber=slist.fiberid)
#
# Insist that all of the requested spectra exist.
#
Expand Down Expand Up @@ -296,4 +295,4 @@ def template_input_main(): # pragma: no cover

if __name__ == "__main__":
from sys import exit
exit(template_input_main)
exit(template_input_main())

0 comments on commit 0fb2e94

Please sign in to comment.