# Path: alis/almsgs.py
# class Colors:
# class msgs:
#     def disable(self):
#     def __init__(self):
#     def alisheader(self, prognm, verbose=2):
#     def signal_handler(self, signalnum, handler):
#     def error(self, msg, verbose=None):
#     def info(self, msg, verbose=None):
#     def warn(self, msg, verbose=None):
#     def test(self, msg, verbose=None):
#     def bug(self, msg, verbose=None):
#     def work(self, msg, verbose=None):
#     def input(self):
#     def newline(self,verbose=None):
#     def indent(self,verbose=None):


import numpy as np
import os, sys
import copy
    import pdb as debugger
                    import pdb
from alis import almsgs
from multiprocessing import cpu_count
from IPython import embed
from astropy.io import fits as pyfits
    from xastropy.xutils import xdebug as debugger
    from astropy.io.votable import parse_single_table
from __future__ import absolute_import, division, print_function


msgs = almsgs.msgs()


try: input = raw_input
except NameError: pass

try:
except:


def cpucheck(ncpu,curcpu=0,verbose=2):
    cpucnt=cpu_count()
    if ncpu == 'all':
        ncpu=cpucnt # Use all available cpus
        if cpucnt != curcpu: msgs.info("Setting %i CPUs" % (ncpu),verbose=verbose)

# Path: alis/almsgs.py
# class Colors:
# class msgs:
#     def disable(self):
#     def __init__(self):
#     def alisheader(self, prognm, verbose=2):
#     def signal_handler(self, signalnum, handler):
#     def error(self, msg, verbose=None):
#     def info(self, msg, verbose=None):
#     def warn(self, msg, verbose=None):
#     def test(self, msg, verbose=None):
#     def bug(self, msg, verbose=None):
#     def work(self, msg, verbose=None):
#     def input(self):
#     def newline(self,verbose=None):
#     def indent(self,verbose=None):


# Path: alis/alload.py
import numpy as np
import os, sys
import copy
    import pdb as debugger
                    import pdb
from alis import almsgs
from multiprocessing import cpu_count
from IPython import embed
from astropy.io import fits as pyfits
    from xastropy.xutils import xdebug as debugger
    from astropy.io.votable import parse_single_table

from __future__ import absolute_import, division, print_function


msgs = almsgs.msgs()


try: input = raw_input
except NameError: pass

try:
except:


def cpucheck(ncpu,curcpu=0,verbose=2):
    cpucnt=cpu_count()
    if ncpu == 'all':
        ncpu=cpucnt # Use all available cpus
        if cpucnt != curcpu: msgs.info("Setting %i CPUs" % (ncpu),verbose=verbose)

    elif ncpu == None: