Skip to content

Commit

Permalink
Merge pull request #24 from NeuroVault/fix/export
Browse files Browse the repository at this point in the history
fixing collections and images export
  • Loading branch information
vsoch committed Sep 14, 2015
2 parents 3c57512 + b32d40b commit 59d6ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyneurovault/api.py
Expand Up @@ -119,13 +119,13 @@ def get_image_ids(map_type=None,modality=None):
# Export
def export_images_tsv(output_file,images=None):
"""Export images to tab separated value file (tsv)"""
if images == None:
if not isinstance(images,pandas.DataFrame):
images = get_images()
images.to_csv(output_file,encoding="utf-8",sep="\t")

def export_collections_tsv(output_file,collections=None):
"""Export collections to tab separated value file (tsv)"""
if collections == None:
if not isinstance(collections,pandas.DataFrame):
collections = get_collections()
collections.to_csv(output_file,encoding="utf-8",sep="\t")

Expand Down

0 comments on commit 59d6ab8

Please sign in to comment.