Skip to content

Commit

Permalink
v1.0.1: Dropbox fix for positive dec fields (#109)
Browse files Browse the repository at this point in the history
* Dropbox: fix for positive dec fields

Positive declination fields were not being downloaded as the '+' was not being escaped properly.

* version bump
  • Loading branch information
ajstewart authored Feb 10, 2020
1 parent b9f869d commit 1ab6fea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
*$py.class
.DS_Store
2 changes: 2 additions & 0 deletions bin/get_vast_pilot_dbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import configparser
import numpy as np
import pandas as pd
import re

from vasttools.survey import RELEASED_EPOCHS
from vasttools.survey import Dropbox
Expand Down Expand Up @@ -95,6 +96,7 @@ def filter_files_list(
tiles_only = False

if len(fields) > 0:
fields = [re.escape(i) for i in fields]
field_pattern = "|".join(fields)
logger.debug("Filtering fields for {}".format(field_pattern))
filter_df = filter_df[filter_df.file.str.contains(field_pattern)]
Expand Down
2 changes: 1 addition & 1 deletion vasttools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
'''

__author__ = 'Dougal Dobie, Adam Stewart'
__version__ = "1.0.0"
__version__ = "1.0.1"

0 comments on commit 1ab6fea

Please sign in to comment.