test_input_file_node.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:ncagg 作者: 5tefan 项目源码 文件源码
def test_get_start_time(self):
        """Test that a valid dim_configs is accepted."""
        self.config.dims["time"].update({
            "index_by": "time"
        })
        a = InputFileNode(self.config, another_input_file)
        start_found = num2date(a.get_first_of_index_by(self.config.dims["time"]),
                               "seconds since 2000-01-01 12:00:00")
        self.assertEqual(start_found, datetime(2017, 4, 14, 20, 27, 59, 900871))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号