Skip to content

Relax timing test - #2130

Merged
mrocklin merged 1 commit into
dask:masterfrom
mrocklin:relax-timing-test
Mar 28, 2017
Merged

mrocklin merged 1 commit into
dask:masterfrom
mrocklin:relax-timing-test

Conversation

@mrocklin

Copy link
Copy Markdown
Member

This was an intermittent failure on travis.ci before.

This was an intermittent failure on travis.ci before.
@mrocklin

Copy link
Copy Markdown
Member Author

cc @martindurant there might be a parquet/dask mismatch going on here

@martindurant

Copy link
Copy Markdown
Member

Yes - merging #2113 should fix.

@mrocklin

Copy link
Copy Markdown
Member Author

Would it be possible to smoothly deprecate the old attribute so that we can be resilient to slight changes in version? For example if you were to release fastparquet today it would break any current dask user's experience.

@martindurant

Copy link
Copy Markdown
Member

I can only think of duplicating it, or using a getter which raises a warning.

@mrocklin

Copy link
Copy Markdown
Member Author

Typically one might create a property that raises a warning as you suggest:

@property
def foo(self):
    warnings.warn("Foo has been deprecated, use bar instead")
    return bar

Although I'm not sure what technology is preferred for deprecation warnings these days (cc @jcrist )

@jcrist

jcrist commented Mar 28, 2017

Copy link
Copy Markdown
Member

Raising a warning like that is probably the best way. Python ignores deprecation warnings by default, so raising a warning without a class has been the convention in dask.

@martindurant

Copy link
Copy Markdown
Member

Added it straight in dask/fastparquet@e0a3db5

@mrocklin

Copy link
Copy Markdown
Member Author

Rerunning tests here to verify that things run smoothly. Then lets make the change.

@mrocklin
mrocklin merged commit 7b25cee into dask:master Mar 28, 2017
@mrocklin
mrocklin deleted the relax-timing-test branch March 28, 2017 22:55
@sinhrks sinhrks added this to the 0.14.2 milestone May 11, 2017
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.

4 participants