Skip to content

Commit 30cc904

Browse files
authored
Merge pull request #247 from s22s/feature/collection-temporal-extent-openended
Collection TemporalExtent can be open ended
2 parents 0630c4f + baedbef commit 30cc904

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pystac/collection.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dateutil.parser
44
from dateutil import tz
55
from copy import (copy, deepcopy)
6-
from pystac import (STACError, STACObjectType, CatalogType)
6+
from pystac import (STACObjectType, CatalogType)
77
from pystac.catalog import Catalog
88
from pystac.link import Link
99
from pystac.utils import datetime_to_str
@@ -396,10 +396,6 @@ def __init__(self, intervals):
396396
if not isinstance(intervals[0], abc.Sequence):
397397
intervals = [intervals]
398398

399-
for i in intervals:
400-
if i[0] is None and i[1] is None:
401-
raise STACError('TemporalExtent interval must have either '
402-
'a start or an end time, or both')
403399
self.intervals = intervals
404400

405401
def to_dict(self):

0 commit comments

Comments
 (0)