Skip to content

Do not fail when bcolz import fails#161

Merged
gdementen merged 6 commits intoliam2:masterfrom
benjello:master
May 13, 2015
Merged

Do not fail when bcolz import fails#161
gdementen merged 6 commits intoliam2:masterfrom
benjello:master

Conversation

@benjello
Copy link
Copy Markdown
Collaborator

No description provided.

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling e74381f on benjello:master into 02b807d on liam2:master.

@gdementen
Copy link
Copy Markdown
Member

If you want to make bcolz optional (which is fine with me given its very limited usage), please include an explicit exception if its functionality (interpolate in this case) is used anyway.

2 other places need to be adapted too:

@benjello
Copy link
Copy Markdown
Collaborator Author

Just starting the conversation to test your mood ;-)
More commits to come. Please do not hesitate to be straightforward in your comments, it actually helps me understand your priorities.

@benjello
Copy link
Copy Markdown
Collaborator Author

Could you write the sentence you would like to appear in https://github.com/liam2/liam2/blob/master/INSTALL ?

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling cf9ff0e on benjello:master into 02b807d on liam2:master.

@gdementen
Copy link
Copy Markdown
Member

just move it to the optional dependencies paragraph with something like:

to import data with interpolation/data with missing data points (eg several time series with different dates for the same individual):

Comment thread src/main.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz move this below the "optional deps" comment

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling 92aefda on benjello:master into 02b807d on liam2:master.

Comment thread src/main.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz use N/A when missing, and use the same template (bc_version = ...) than for other optional deps (it is not especially better, but lets be consistent)

Comment thread src/setup.py Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! I never bothered to look up the exact syntax :)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested though !

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please test then ;-)

On Wed, May 13, 2015 at 10:51 AM, Mahdi Ben Jelloul <
notifications@github.com> wrote:

In src/setup.py
#161 (comment):

@@ -143,5 +143,12 @@ def vitables_data_files():
ext_modules=ext_modules,
options={"build_ext": build_ext_options, "build_exe": build_exe_options},
executables=[Executable("main.py")],

  •  requires=['numpy', 'numexpr', 'tables', 'bcolz'])
    
  •  install_requires=['numpy', 'numexpr', 'tables'],
    
  •  extra_requires=dict(
    

Not tested though !

Reply to this email directly or view it on GitHub
https://github.com/liam2/liam2/pull/161/files#r30212604.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually use another setup.py hacked to work on a linux machine so won't be able to test it for windows users (@AlexisEidelman ?). I do not plan to submit a complete overhaul of setup.py (with a travis CI config file etc) this early. My pint with this commit was to propagate upstream as soon as possible what could be propagated without to much hassle.
But i did checked the syntax though ;-)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm a quick google seem to suggest "extras_require" instead of "extra_requires"...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I will fix that

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling 55edc2b on benjello:master into 02b807d on liam2:master.

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling fd80452 on benjello:master into 02b807d on liam2:master.

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling 1895ae8 on benjello:master into 02b807d on liam2:master.

@gdementen
Copy link
Copy Markdown
Member

Looks good to me, thanks!

gdementen added a commit that referenced this pull request May 13, 2015
Do not fail when bcolz import fails
@gdementen gdementen merged commit 449128f into liam2:master May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants