kepler.pulse 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kepler.pulse
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Trade day handling utilities for A-share market
5
5
  Author-email: liubola <lby3523@gmail.com>
6
6
  Maintainer-email: liubola <lby3523@gmail.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "kepler.pulse"
7
- version = "0.2.0"
7
+ version = "0.2.2"
8
8
  description = "Trade day handling utilities for A-share market"
9
9
  readme = "README.md"
10
10
  license = "GPL-3.0-or-later"
@@ -477,7 +477,7 @@ class Calendar:
477
477
  today = dt.datetime.today().strftime('%Y%m%d')
478
478
  dates = self.quarterly.last(TREASURY_START_DATE, f'{int(today[:4]) + YEARS_FORWARD}0101')
479
479
  dates = dates.map(lambda x: self.step(self.monthly.first.prev(x), -2))
480
- dates = dates[dates < pd.Timestamp(self._dates.iloc[-1])].copy()
480
+ dates = dates[dates < self._dates.iloc[-1]].copy()
481
481
  dates = sorted([d for d in dates if d <= self.quarterly.first.next(today, 2)])
482
482
  return dates
483
483
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kepler.pulse
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Trade day handling utilities for A-share market
5
5
  Author-email: liubola <lby3523@gmail.com>
6
6
  Maintainer-email: liubola <lby3523@gmail.com>
File without changes
File without changes
File without changes