Skip to content

Conversation

gabrielmbmb
Copy link
Contributor

Rename the class Experiment methods save and validate to _save and _validate as pointed out in #64.

Copy link
Member

@bfirsh bfirsh left a comment

Choose a reason for hiding this comment

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

Super, thank you! One change needed, otherwise this looks good.


opener = urllib.request.build_opener()
opener.addheaders = [("User-agent", "Mozilla/5.0")]
urllib.request.install_opener(opener)
Copy link
Member

Choose a reason for hiding this comment

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

We probably shouldn't monkey-patch urllib in code that's imported by users. If this is to fix a test, maybe it could go in the test code? That way it wouldn't affect users' programs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah my bad! I though I put that block of code in test_pl_callback.py file not in pl_callback.py. It should be fixed now.

@bfirsh
Copy link
Member

bfirsh commented Mar 8, 2021

I've fixed tests upstream so done a rebase... will merge when tests pass :)

@bfirsh
Copy link
Member

bfirsh commented Mar 8, 2021

Thanks so much @gabrielmbmb!

@bfirsh bfirsh merged commit f7d8a62 into replicate:main Mar 8, 2021
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.

2 participants