Skip to content

Rename sample.py to sampling.py #481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2014

Conversation

kyleam
Copy link
Contributor

@kyleam kyleam commented Feb 9, 2014

This renames pymc/sample.py to pymc/sampling.py to prevent the function pymc.sample from masking the module. All tests pass for me locally.

(This was originally in #449 but was reverted there for cleaner diffs with the master branch.)

This avoids the naming conflict between the module pymc.sample and the
function pymc.sample, which is imported in the top-level __init__.py.
The conflict prevented direct access to the module.
@twiecki
Copy link
Member

twiecki commented Feb 9, 2014

Sounds like a good change!

@jsalvatier
Copy link
Member

+1
On Feb 8, 2014 10:11 PM, "Thomas Wiecki" [email protected] wrote:

Sounds like a good change!

Reply to this email directly or view it on GitHubhttps://github.com//pull/481#issuecomment-34566636
.

twiecki added a commit that referenced this pull request Feb 9, 2014
@twiecki twiecki merged commit bd69788 into pymc-devs:master Feb 9, 2014
@kyleam kyleam deleted the rename-sample-module branch March 28, 2014 16:45
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