Skip to content

Inferencedata warning #4493

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 3 commits into from
Mar 1, 2021
Merged

Conversation

Pyrsos
Copy link
Contributor

@Pyrsos Pyrsos commented Feb 28, 2021

Update sample method inferencedata warning, to include specific type and also define the stacklevel parameter of the warning message. This addresses issue #4481

Depending on what your PR does, here are a few things you might want to address in the description:

@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

Hi @Pyrsos, thanks for the PR! At first sight, the failing test (on Windows only?) appears unrelated to the change here. Any thoughts? I'll have a look as well.

Spaak
Spaak previously requested changes Mar 1, 2021
Copy link
Member

@Spaak Spaak left a comment

Choose a reason for hiding this comment

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

Could you rebase your PR onto current master? There are some conflicts now; once you rebase (or merge current master into your branch) I should be able to merge this, and hopefully the failing test script will disappear as well.

@Spaak Spaak force-pushed the inferencedata_warning branch from a80dfde to 943d214 Compare March 1, 2021 09:19
@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

There were a few commits related to bash scripts etc. (undone later) that had nothing to do with this PR; I've now rebased onto current master and picked only the relevant commits. Let's see what CI shows.

@Spaak Spaak dismissed their stale review March 1, 2021 09:29

Rebased

@Pyrsos
Copy link
Contributor Author

Pyrsos commented Mar 1, 2021

@Spaak Sorry, I think I messed this up. Tried to rebase and I think I reintroduced all the other commits.

@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

@Spaak Sorry, I think I messed this up. Tried to rebase and I think I reintroduced all the other commits.

Yep :D No problem, definitely fixable. I already did the rebasing, might be good if you do it instead. What I did was:

gh pr checkout 4493 (which you wouldn't need to do as you have the branch locally already I assume)
git rebase -i master

In the interactive rebase, be sure to only pick those three commits actually related to this change. Drop the rest.

Then, git push -f for a force-push, which will overwrite the history here in the PR branch to the new, clean, one.

@Spaak Spaak self-assigned this Mar 1, 2021
@Pyrsos Pyrsos force-pushed the inferencedata_warning branch from 69e3de4 to 7431926 Compare March 1, 2021 13:24
@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

Hmm the old commits are still there. Is your master up to date? (git checkout master and git pull upstream master before doing the rebasing)

@Pyrsos
Copy link
Contributor Author

Pyrsos commented Mar 1, 2021

Hmm the old commits are still there. Is your master up to date? (git checkout master and git pull upstream master before doing the rebasing)

Yeah, I have the latest master. Not sure what is going on exactly...

@Spaak Spaak force-pushed the inferencedata_warning branch from 7431926 to 6130d2e Compare March 1, 2021 13:44
@Pyrsos Pyrsos force-pushed the inferencedata_warning branch from 6130d2e to 1e0e7e1 Compare March 1, 2021 13:45
@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

You may have had a merge commit locally on master (created after pulling upstream could not be done in a fast-forward), and therefore rebased onto that merge commit. I've now rebased again (excluding the merge commit), leaving only the three key commits.

If you want to get this branch locally in a clean state (though you might not need it if the tests succeed and we merge into master), it's easiest to delete it locally and fetch again.

@Pyrsos
Copy link
Contributor Author

Pyrsos commented Mar 1, 2021

@Spaak OK, I think I figured it out. I had messed up the master branch on my local repo. Sorry again for all the hustle. It looks like it has the correct commits now.

@Spaak
Copy link
Member

Spaak commented Mar 1, 2021

Haha and both of us now did the same thing :) In any case it looks clean now.

@Pyrsos
Copy link
Contributor Author

Pyrsos commented Mar 1, 2021

Haha and both of us now did the same thing :) In any case it looks clean now.

Yeah, looks that way! Thanks for the help! Hopefully it builds now!

@MarcoGorelli
Copy link
Contributor

I usually do

git fetch upstream
git rebase -i upstream/master

Because even if I messed up my local master branch, upstream/master is probably fine :)

@michaelosthege
Copy link
Member

The test failure is the flaky test (#4323).
https://github.com/pymc-devs/pymc3/pull/4493/checks?check_run_id=2004362931#step:7:2461

Just re-start the Github action pipeline and it will probably go away.

@twiecki twiecki merged commit 055d112 into pymc-devs:master Mar 1, 2021
@twiecki
Copy link
Member

twiecki commented Mar 1, 2021

Thanks @Pyrsos!

michaelosthege pushed a commit to michaelosthege/pymc that referenced this pull request Mar 10, 2021
* Pass stacklevel argument corrently

* Pre-commit errors

* Missing comma
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.

5 participants