github
0 of 1 new or added line in 1 file covered. (0.0%)
462 existing lines in 18 files now uncovered.3402 of 4007 relevant lines covered (84.9%)
39.36 hits per line
1 |
import numpy as np |
|
2 |
|
|
UNCOV
3
|
from .base import NumpyColumn |
× |
4 |
|
|
5 |
|
|
UNCOV
6
|
class NumpyDateColumn(NumpyColumn): |
× |
UNCOV
7
|
dtype = np.dtype(np.uint16) |
× |
UNCOV
8
|
ch_type = 'Date'
|
× |
9 |
|
|
UNCOV
10
|
null_value = np.datetime64(0, 'Y') |
× |
11 |
|
|
UNCOV
12
|
def read_items(self, n_items, buf): |
× |
UNCOV
13
|
data = super(NumpyDateColumn, self).read_items(n_items, buf) |
× |
UNCOV
14
|
return data.astype('datetime64[D]') |
× |
15 |
|
|
UNCOV
16
|
def write_items(self, items, buf): |
× |
UNCOV
17
|
super(NumpyDateColumn, self).write_items( |
× |
18 |
items.astype('datetime64[D]'), buf
|
|
19 |
) |