Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmpp committed May 10, 2019
1 parent 2532b44 commit d22d15a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
Empty file removed __init__.py
Empty file.
2 changes: 1 addition & 1 deletion climIndices/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_data(index, source = 'NOAA'):

call(["curl","-s", "-o", 'temp.txt', URL], stdout=open(os.devnull, 'wb'))
flen = file_len('temp.txt')
df = pd.read_csv('temp.txt',sep='\s+', skiprows=[0,flen-1, flen-2])
df = pd.read_csv('temp.txt',sep='\s+', skiprows=[0],error_bad_lines=True)
call(['rm', 'temp.txt'])
df = format_data(df, index)
return df
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
setup(
name = 'climIndices', # How you named your package folder (MyLib)
packages = ['climIndices'], # Chose the same as "name"
version = '0.2', # Start with a small number and increase it with every change you make
version = '0.21', # Start with a small number and increase it with every change you make
license='MIT', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
description = 'Methods to download and format NOAA climate indices', # Give a short description about your library
author = 'Gabriel Perez', # Type in your name
author_email = '[email protected]', # Type in your E-Mail
url = 'https://github.com/gabrielmpp/climate_indices', # Provide either the link to your github or to your website
download_url = 'https://github.com/gabrielmpp/climate_indices/archive/v0.2.tar.gz', # I explain this later on
download_url = 'https://github.com/gabrielmpp/climate_indices/archive/v0.21.tar.gz', # I explain this later on
keywords = ['climate', 'pandas'], # Keywords that define your package best
install_requires=[ # I get to this in a second
'pandas',
Expand Down

0 comments on commit d22d15a

Please sign in to comment.