Skip to content

Commit

Permalink
Merge pull request #26 from sat-utils/develop
Browse files Browse the repository at this point in the history
publish 0.1.0
  • Loading branch information
matthewhanson authored Jan 13, 2019
2 parents 16931d2 + 72f398d commit f748804
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion satstac/collection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import logging
import os

from datetime import datetime

from .catalog import Catalog
from satstac import STACError, utils

Expand Down Expand Up @@ -48,6 +50,7 @@ def properties(self):

def add_item(self, item, path='', filename='${id}'):
""" Add an item to this collection """
start = datetime.now()
if self.filename is None:
raise STACError('Save catalog before adding items')
item_link = item.get_filename(path, filename)
Expand Down Expand Up @@ -86,5 +89,5 @@ def add_item(self, item, path='', filename='${id}'):

# save item
item.save_as(item_fname)
logger.info('Added %s as %s' % (item.id, item.filename))
logger.debug('Added %s in %s seconds' % (item.filename, datetime.now()-start))
return self
2 changes: 1 addition & 1 deletion satstac/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.0rc6'
__version__ = '0.1.0'

0 comments on commit f748804

Please sign in to comment.