We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f10c9ab commit 3983b79Copy full SHA for 3983b79
cf_units/tests/integration/test__Unit_date2num.py
@@ -23,7 +23,6 @@
23
"calendar_const, calendar_str", zip(CALENDAR_CONSTANTS, CALENDAR_STRINGS)
24
)
25
def test_fractional_second(calendar_const, calendar_str):
26
- nums = [0.25, 0.5, 0.75, 1.5, 2.5, 3.5, 4.5]
27
unit = cf_units.Unit("seconds since 1970-01-01", calendar_const)
28
dates = [
29
cftime.datetime(1970, 1, 1, 0, 0, 0, 250000, calendar=calendar_str),
@@ -33,7 +32,9 @@ def test_fractional_second(calendar_const, calendar_str):
33
32
cftime.datetime(1970, 1, 1, 0, 0, 2, 500000, calendar=calendar_str),
34
cftime.datetime(1970, 1, 1, 0, 0, 3, 500000, calendar=calendar_str),
35
cftime.datetime(1970, 1, 1, 0, 0, 4, 500000, calendar=calendar_str),
+ cftime.datetime(1970, 1, 3, 0, 0, 4, 500000, calendar=calendar_str),
36
]
37
+ nums = [0.25, 0.5, 0.75, 1.5, 2.5, 3.5, 4.5, 172804.5]
38
39
for num, date in zip(nums, dates):
40
res = unit.date2num(date)
0 commit comments