This repository has been archived by the owner on Jun 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify drivers manually & via setuptools
No more recursive import -- should save some load time and is more straightforward for drivers distributed with TSTools. Avoids class inheritance gore. Setuptools iter_entry_points allows for driver plugins to plugin under 'TSTools.drivers'
- Loading branch information
Showing
2 changed files
with
36 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
""" Timeseries drivers | ||
""" | ||
from collections import OrderedDict | ||
|
||
DRIVERS = OrderedDict(( | ||
('StackedTimeSeries', 'timeseries_stacked'), | ||
('CCDCTimeSeries', 'timeseries_ccdc'), | ||
('YATSMTimeSeries', 'timeseries_yatsm'), | ||
('YATSMMetTimeSeries', 'timeseries_yatsm_met'), | ||
('YATSMLandsatPALSARTS', 'timeseries_opticalradar'), | ||
)) | ||
|
||
for name, val in DRIVERS.items(): | ||
DRIVERS[name] = 'tstools.ts_driver.drivers.' + val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters