test_input_file_node.py 文件源码

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

项目:ncagg 作者: 5tefan 项目源码 文件源码
def test_get_end_time(self):
        self.config.dims["report_number"].update({
            "index_by": "OB_time",
            "other_dim_inds": {"number_samples_per_report": 0}
        })
        a = InputFileNode(self.config, test_input_file)
        end_found = num2date(a.get_last_of_index_by(self.config.dims["report_number"]),
                             "seconds since 2000-01-01 12:00:00")
        self.assertEqual(end_found, datetime(2017, 2, 12, 15, 0, 58, 900926))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号