@@ -1394,40 +1394,40 @@ cdef int apply_accessor(accessor func, int64_t value, int freq,
1394
1394
return func(value, freq)
1395
1395
1396
1396
cpdef int get_period_year(int64_t value, int freq, int64_t mult) except - 1 :
1397
- return apply_accessor(pyear, value, freq, mult)
1397
+ return apply_accessor(& pyear, value, freq, mult)
1398
1398
1399
1399
cpdef int get_period_qyear(int64_t value, int freq, int64_t mult) except - 1 :
1400
- return apply_accessor(pqyear, value, freq, mult)
1400
+ return apply_accessor(& pqyear, value, freq, mult)
1401
1401
1402
1402
cpdef int get_period_quarter(int64_t value, int freq, int64_t mult) except - 1 :
1403
- return apply_accessor(pquarter, value, freq, mult)
1403
+ return apply_accessor(& pquarter, value, freq, mult)
1404
1404
1405
1405
cpdef int get_period_month(int64_t value, int freq, int64_t mult) except - 1 :
1406
- return apply_accessor(pmonth, value, freq, mult)
1406
+ return apply_accessor(& pmonth, value, freq, mult)
1407
1407
1408
1408
cpdef int get_period_day(int64_t value, int freq, int64_t mult) except - 1 :
1409
- return apply_accessor(pday, value, freq, mult)
1409
+ return apply_accessor(& pday, value, freq, mult)
1410
1410
1411
1411
cpdef int get_period_hour(int64_t value, int freq, int64_t mult) except - 1 :
1412
- return apply_accessor(phour, value, freq, mult)
1412
+ return apply_accessor(& phour, value, freq, mult)
1413
1413
1414
1414
cpdef int get_period_minute(int64_t value, int freq, int64_t mult) except - 1 :
1415
- return apply_accessor(pminute, value, freq, mult)
1415
+ return apply_accessor(& pminute, value, freq, mult)
1416
1416
1417
1417
cpdef int get_period_second(int64_t value, int freq, int64_t mult) except - 1 :
1418
- return apply_accessor(psecond, value, freq, mult)
1418
+ return apply_accessor(& psecond, value, freq, mult)
1419
1419
1420
1420
cpdef int get_period_dow(int64_t value, int freq, int64_t mult) except - 1 :
1421
- return apply_accessor(pday_of_week, value, freq, mult)
1421
+ return apply_accessor(& pday_of_week, value, freq, mult)
1422
1422
1423
1423
cpdef int get_period_week(int64_t value, int freq, int64_t mult) except - 1 :
1424
- return apply_accessor(pweek, value, freq, mult)
1424
+ return apply_accessor(& pweek, value, freq, mult)
1425
1425
1426
1426
cpdef int get_period_weekday(int64_t value, int freq, int64_t mult) except - 1 :
1427
- return apply_accessor(pweekday, value, freq, mult)
1427
+ return apply_accessor(& pweekday, value, freq, mult)
1428
1428
1429
1429
cpdef int get_period_doy(int64_t value, int freq, int64_t mult) except - 1 :
1430
- return apply_accessor(pday_of_year, value, freq, mult)
1430
+ return apply_accessor(& pday_of_year, value, freq, mult)
1431
1431
1432
1432
# same but for arrays
1433
1433
@@ -1448,40 +1448,40 @@ cdef ndarray[int64_t] apply_accessor_arr(accessor func,
1448
1448
return out
1449
1449
1450
1450
def get_period_year_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1451
- return apply_accessor_arr(pyear, arr, freq, mult)
1451
+ return apply_accessor_arr(& pyear, arr, freq, mult)
1452
1452
1453
1453
def get_period_qyear_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1454
- return apply_accessor_arr(pqyear, arr, freq, mult)
1454
+ return apply_accessor_arr(& pqyear, arr, freq, mult)
1455
1455
1456
1456
def get_period_quarter_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1457
- return apply_accessor_arr(pquarter, arr, freq, mult)
1457
+ return apply_accessor_arr(& pquarter, arr, freq, mult)
1458
1458
1459
1459
def get_period_month_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1460
- return apply_accessor_arr(pmonth, arr, freq, mult)
1460
+ return apply_accessor_arr(& pmonth, arr, freq, mult)
1461
1461
1462
1462
def get_period_day_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1463
- return apply_accessor_arr(pday, arr, freq, mult)
1463
+ return apply_accessor_arr(& pday, arr, freq, mult)
1464
1464
1465
1465
def get_period_hour_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1466
- return apply_accessor_arr(phour, arr, freq, mult)
1466
+ return apply_accessor_arr(& phour, arr, freq, mult)
1467
1467
1468
1468
def get_period_minute_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1469
- return apply_accessor_arr(pminute, arr, freq, mult)
1469
+ return apply_accessor_arr(& pminute, arr, freq, mult)
1470
1470
1471
1471
def get_period_second_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1472
- return apply_accessor_arr(psecond, arr, freq, mult)
1472
+ return apply_accessor_arr(& psecond, arr, freq, mult)
1473
1473
1474
1474
def get_period_dow_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1475
- return apply_accessor_arr(pday_of_week, arr, freq, mult)
1475
+ return apply_accessor_arr(& pday_of_week, arr, freq, mult)
1476
1476
1477
1477
def get_period_week_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1478
- return apply_accessor_arr(pweek, arr, freq, mult)
1478
+ return apply_accessor_arr(& pweek, arr, freq, mult)
1479
1479
1480
1480
def get_period_weekday_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1481
- return apply_accessor_arr(pweekday, arr, freq, mult)
1481
+ return apply_accessor_arr(& pweekday, arr, freq, mult)
1482
1482
1483
1483
def get_period_doy_arr (ndarray[int64_t] arr , int freq , int64_t mult ):
1484
- return apply_accessor_arr(pday_of_year, arr, freq, mult)
1484
+ return apply_accessor_arr(& pday_of_year, arr, freq, mult)
1485
1485
1486
1486
def get_abs_time (freq , dailyDate , originalDate ):
1487
1487
return getAbsTime(freq, dailyDate, originalDate)
0 commit comments