• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python testutil.get_data_file_name函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中testutil.get_data_file_name函数的典型用法代码示例。如果您正苦于以下问题:Python get_data_file_name函数的具体用法?Python get_data_file_name怎么用?Python get_data_file_name使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_data_file_name函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: test_gmos_north_ifu_R_flat

def test_gmos_north_ifu_R_flat():
    add_cursor_position(9.0, 101.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(10.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20130717S0014.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例2: test_gmos_south_ifu_2_diffuse_object

def test_gmos_south_ifu_2_diffuse_object():
    add_cursor_position(10.5, 106.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(20.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("S20130421S0035.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例3: test_gmos_north_ifu_R

def test_gmos_north_ifu_R():
    add_cursor_position(10.5, 101.5, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(9.6, 11.2, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20111126S0354.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例4: test_gmos_south_ifu_2_newer_flat

def test_gmos_south_ifu_2_newer_flat():
    add_cursor_position(11.0, 102.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(20.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("S20130725S0014.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例5: test_gmos_north_ifu_2_flat

def test_gmos_north_ifu_2_flat():
    add_cursor_position(10.3, 102.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(20.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20130606S0009.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例6: test_gmos_south_ifu_2_flat

def test_gmos_south_ifu_2_flat():
    add_cursor_position(7.0, 108.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(20.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("S20130110S0028.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例7: test_gmos_south_ifu_2_bright_star

def test_gmos_south_ifu_2_bright_star():
    add_cursor_position(10.0, 108.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(19.0, 13.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("S20130227S0313.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例8: test_gmos_north_long_object

def test_gmos_north_long_object():
    add_cursor_position(12.0, 99.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(9.0, 13.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20130605S0153.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例9: test_gmos_north_extended_fuzzy_object

def test_gmos_north_extended_fuzzy_object():
    add_cursor_position(8.6, 98.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(8.0, 14.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20130716S0160.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例10: test_gmos_north_ifu_2

def test_gmos_north_ifu_2():
    add_cursor_position(12.0, 97.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(19.0, 14.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20120122S0031.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例11: test_old_gmos_north_with_3_boxes

def test_old_gmos_north_with_3_boxes():
    centers = [(1187.0, 572.0),
               (5138.5, 3694.5),
               (1024.5, 4034.5)]

    acqimage = AcquisitionImage(get_data_file_name("N20060131S0015.fits"))
    assert_mos_acquisition(acqimage, centers, 0.4)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_mos_box_detection.py


示例12: test_gmos_north

def test_gmos_north():
    centers = [(4408.0, 1601.0),
               (1387.5, 2168.5),
               (3548.0, 3052.0)]

    acqimage = AcquisitionImage(get_data_file_name("N20130419S0270.fits"))
    assert_mos_acquisition(acqimage, centers, 0.5)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_mos_box_detection.py


示例13: test_gmos_south_ifu_R

def test_gmos_south_ifu_R():
    add_cursor_position(9.0, 101.0, "a")
    add_cursor_position(0.0, 0.0, "q")
    add_cursor_position(10.0, 10.0, "r")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("S20071017S0002.fits")])
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:7,代码来源:test_ifu_reconstruction.py


示例14: test_gmos_south_from_entire_field_of_view

def test_gmos_south_from_entire_field_of_view():
    centers = [(3956.0, 404.0),
               (3466.0, 596.5),
               (2397.0, 1626.5),
               (4949.5, 2795.0)]

    acqimage = AcquisitionImage(get_data_file_name("S20090422S0074.fits"))
    assert_mos_acquisition(acqimage, centers, 0.3)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:8,代码来源:test_mos_box_detection.py


示例15: test_gmos_south_port_one

def test_gmos_south_port_one():
    centers = [(1330.0, 4220.0),
               (2708.5, 3518.5),
               (2990.0, 642.0)]

    acqimage = AcquisitionImage(get_data_file_name("S20110804S0079.fits"))

    assert_mos_acquisition(acqimage, centers, 0.2)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:8,代码来源:test_mos_box_detection.py


示例16: test_gmos_south_with_a_weird_artifact

def test_gmos_south_with_a_weird_artifact():
    acqimage = AcquisitionImage(get_data_file_name("S20130114S0062.fits"))

    centers = [(3923.0, 1384.5),
               (1708.6, 3424.4),
               (4955.4, 3834.4)]

    assert_mos_acquisition(acqimage, centers, 0.5)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:8,代码来源:test_mos_box_detection.py


示例17: test_gmos_south_ifu_R_imaging

def test_gmos_south_ifu_R_imaging():
    add_cursor_position(302.0, 1160.0, "a")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", "-v", testutil.get_data_file_name("S20090326S0024.fits")])

    offsets = testutil.get_offsets()
    testutil.assert_tolerance(offsets[0], 2.471, tolerance=0.004)
    testutil.assert_tolerance(offsets[1], 1.035, tolerance=0.007)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:9,代码来源:test_GMOS_ifu_imaging.py


示例18: test_finding_an_easier_center

def test_finding_an_easier_center():
    ad = AstroData(get_data_file_name("N20060131S0012.fits"))
    selection = get_selection_peak(ad.data, (489.07, 478.99), float(ad.pixel_scale()))

    predicted_center = selection.get_center()

    assert_tolerance(predicted_center,
                     (489.11025833697016, 478.68088198208636),
                     tolerance=0.02)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:9,代码来源:testselection.py


示例19: test_gmos_north_ifu_R_imaging_on_a_stamp

def test_gmos_north_ifu_R_imaging_on_a_stamp():
    add_cursor_position(154.0, 152.0, "a")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20111126S0353.fits")])

    offsets = testutil.get_offsets()
    testutil.assert_tolerance(offsets[0],  31.014, tolerance=0.040)
    testutil.assert_tolerance(offsets[1],  -1.457, tolerance=0.006)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:9,代码来源:test_GMOS_ifu_imaging.py


示例20: test_gmos_north_ifu_2_imaging

def test_gmos_north_ifu_2_imaging():
    add_cursor_position(516.0, 1154.0, "a")
    add_cursor_position(0.0, 0.0, "q")

    ret = main(["gacq_test", testutil.get_data_file_name("N20120122S0030.fits")])

    offsets = testutil.get_offsets()
    testutil.assert_tolerance(offsets[0],  29.013, tolerance=0.004)
    testutil.assert_tolerance(offsets[1],  -1.457, tolerance=0.01)
开发者ID:pyrrho314,项目名称:recipesystem,代码行数:9,代码来源:test_GMOS_ifu_imaging.py



注:本文中的testutil.get_data_file_name函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python testutil.get_task_params函数代码示例发布时间:2022-05-27
下一篇:
Python matchers.MatchesStructure类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap