Ejemplo n.º 1
0
def main():
    total = 0
    score = 0

    total += 1
    if student.hi() == "hi":
        score += 1
    print(f"{score}/{total}")
Ejemplo n.º 2
0
from hi import hi
import os
import sys
import importlib

sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))

app = hi()


@app.route(r'^/(?P<module>.+)/?$', ['GET', 'POST', 'PUT', 'DELETE', 'PATCH'])
def controller(req, res, param):
    try:
        module = importlib.import_module('.index',
                                         param['module'].replace("/", "."))
        module.handler(req, res, param)
    except Exception as e:
        res.content(repr(e))
        res.status(500)


def main(req, res):
    app.run(req, res)
Ejemplo n.º 3
0
#from radiobs import conv_units, cubeful, hi
from astropy import wcs
from astropy.io import fits, ascii
from astropy import units as u
from astropy.table import Table, Column, MaskedColumn
from astroquery.vizier import Vizier
import astropy.coordinates as coord
from mpdaf.obj import Spectrum, WaveCoord
import matplotlib

matplotlib.use('Agg')
from matplotlib import gridspec
from matplotlib import pyplot as plt
from matplotlib import rc

hi = hi.hi()

C = 2.99792458e5  #km/s
HI = 1.420405751e9  #Hz

####################################################################################################


def abs_ex(cfg_par):
    '''
        Extract spectra from all l.o.s. exctracted using a catalog of sources or a source finder

        WARNING:
            source finder, or extraction of sources from a catalog (cont_src module) must be run first

        INPUT:
Ejemplo n.º 4
0
 def test_hi(self):
     hi.hi()
def hi(args):
    import hi
    return {"hi": hi.hi(args.get("name"))}
Ejemplo n.º 6
0
import hi
print(hi.hi())
print(hi.how())
print(hi.are())