예제 #1
0
    def test_cone_search_function3(self):

        from sloancone.cone_search import cone_search
        this = cone_search(
            log=log,
            ra="112.233432",
            dec="15:34:31.22",
            searchRadius=60.,
            nearest=True,
            outputFormat="csv",
            galaxyType="all"
        )
        print this.get()

        from sloancone.cone_search import cone_search
        this = cone_search(
            log=log,
            ra="112.233432",
            dec="15:34:31.22",
            searchRadius=60.,
            nearest=False,
            outputFormat="csv",
            galaxyType="all"
        )
        print this.get()
예제 #2
0
    def test_cone_search_function(self):

        from sloancone.cone_search import cone_search
        this = cone_search(
            log=log,
            ra="12:45:23.2323",
            dec="30.343122",
            searchRadius=60.,
            nearest=True,
            outputFormat="table",
            galaxyType="all"
        )
        print this.get()

        from sloancone.cone_search import cone_search
        this = cone_search(
            log=log,
            ra="12:45:23.2323",
            dec="30.343122",
            searchRadius=60.,
            nearest=False,
            outputFormat="table",
            galaxyType="all"
        )
        print this.get()
예제 #3
0
    def test_cone_search_function_exception(self):

        from sloancone.cone_search import cone_search
        try:
            this = cone_search(log=log, fakeKey="break the code")
            this.get()
            assert False
        except Exception as e:
            assert True
            print(str(e))
예제 #4
0
    def test_cone_search_function3(self):

        from sloancone.cone_search import cone_search
        this = cone_search(log=log,
                           ra="112.233432",
                           dec="15:34:31.22",
                           searchRadius=60.,
                           nearest=True,
                           outputFormat="csv",
                           galaxyType="all")
        print(this.get())

        from sloancone.cone_search import cone_search
        this = cone_search(log=log,
                           ra="112.233432",
                           dec="15:34:31.22",
                           searchRadius=60.,
                           nearest=False,
                           outputFormat="csv",
                           galaxyType="all")
        print(this.get())
예제 #5
0
    def test_cone_search_function(self):

        from sloancone.cone_search import cone_search
        this = cone_search(log=log,
                           ra="12:45:23.2323",
                           dec="30.343122",
                           searchRadius=60.,
                           nearest=True,
                           outputFormat="table",
                           galaxyType="all")
        print(this.get())

        from sloancone.cone_search import cone_search
        this = cone_search(log=log,
                           ra="12:45:23.2323",
                           dec="30.343122",
                           searchRadius=60.,
                           nearest=False,
                           outputFormat="table",
                           galaxyType="all")
        print(this.get())
예제 #6
0
    def test_cone_search_function5(self):

        from sloancone.cone_search import cone_search
        csResults = cone_search(log=log,
                                ra="12:45:23.2323",
                                dec="30.343122",
                                searchRadius=60.,
                                nearest=False,
                                outputFormat="table",
                                galaxyType=False).get()

        print(csResults)
예제 #7
0
    def test_cone_search_function_exception(self):

        from sloancone.cone_search import cone_search
        try:
            this = cone_search(
                log=log,
                fakeKey="break the code"
            )
            this.get()
            assert False
        except Exception, e:
            assert True
            print str(e)
예제 #8
0
    def test_cone_search_function5(self):

        from sloancone.cone_search import cone_search
        csResults = cone_search(
            log=log,
            ra="12:45:23.2323",
            dec="30.343122",
            searchRadius=60.,
            nearest=False,
            outputFormat="table",
            galaxyType=False
        ).get()

        print csResults