-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
BUG: Fix concat on Windows #9351
Conversation
Yeah, this solves my problem! Thank you! |
Thanks for pointing it out @agramfort because
https://github.com/mne-tools/mne-python/pull/9351/checks?check_run_id=2440366851#step:12:2839 |
@larsoner what do you think about trying the alternative calculation only when the |
I think it's just a 0-1 vs 0-255 mapping problem, I'll test locally and push a fix
I'd rather not have two code paths. If we're forced to go back to |
This code: Code
Gives on On what @agramfort tested you can see two bugs -- one I introduced and another involving Pushed a commit to fix both problems:
|
For me, deleting the |
... actually it doesn't make it work, it makes it look not cut off, which is good, but it's the wrong size, which is bad. I'll see if I can figure out what to do to make it work |
Okay should be fixed, can you review and test locally @GuillaumeFavelier ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, everything works locally and the changes look good.
Thanks @larsoner!! |
Closes #9336
@crsegerie can you see if this fixes your problem?
I was able to replicate on Windows. Basically I think the problem was that after our DPI calculations, the resulting size was something like
1406.99999999
instead of1407
, so MPL made something with only 1406 pixels instead of 1407 and this broke things. We could try tweaking our DPI calculations, but it seems safer just to output a PNG then read it back, as this has the dimensions, then make use of our smart concat function to take care of any difference in dimension.Okay with you @GuillaumeFavelier ?