Skip to content

Conversation

HorlogeSkynet
Copy link
Owner

@HorlogeSkynet HorlogeSkynet commented May 9, 2020

Closes #61.

Description

GPUs were not following 3D > VGA > Display order (poor implementation), and only one was displayed.
This should be fixed now.

Reason and / or context

See #61.

How has this been tested ?

Test cases.

Types of changes :

  • Bug fix (non-breaking change which fixes an issue)
  • Typo / style fix (non-breaking change which improves readability)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist :

  • [IF NEEDED] I have updated the test cases (which pass) accordingly ;
  • My changes looks good ;
  • I agree that my code may be modified in the future ;
  • My code follows the code style of this project (PEP8).

@HorlogeSkynet HorlogeSkynet added bug 🐛 A real glitch has been found enhancement ⬆️ Implements a new feature, fixes or improves existing ones labels May 9, 2020
@HorlogeSkynet HorlogeSkynet added this to the v4.7.2 milestone May 9, 2020
@HorlogeSkynet HorlogeSkynet requested a review from ingrinder May 9, 2020 08:22
@HorlogeSkynet HorlogeSkynet self-assigned this May 9, 2020
Samuel FORESTIER and others added 2 commits May 10, 2020 08:56
Copy link
Collaborator

@ingrinder ingrinder left a comment

Choose a reason for hiding this comment

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

I've made a few tweaks to this PR; let me know what you think 👍.

Samuel FORESTIER added 3 commits May 11, 2020 10:29
+ Automatically sets `Not detected` as `value` when "falsy" (that will DRY entries logic in the future).

Rationale: This would _drastically_ simplify its mocking across our test modules.
HorlogeSkynet pushed a commit that referenced this pull request May 11, 2020
> Rationale: When #71 will be merged, issues due to keys duplication may occur.
>            This patch sets output values as a list anyway, sparing us an API breakage in the future.
> Note: A `Colors.remove_colors` utility method has been added for DRY purposes.
@HorlogeSkynet HorlogeSkynet requested a review from ingrinder May 11, 2020 09:28
@HorlogeSkynet
Copy link
Owner Author

HorlogeSkynet commented May 11, 2020

So did I ! Entry.output became a problem when overridden by child classes.
I've tried a work-around, tell me what you think about that !

@HorlogeSkynet HorlogeSkynet mentioned this pull request May 12, 2020
5 tasks
HorlogeSkynet pushed a commit that referenced this pull request May 12, 2020
> Rationale: When #71 will be merged, issues due to keys duplication may occur.
>            This patch sets output values as a list anyway, sparing us an API breakage in the future.
> Note: A `Colors.remove_colors` utility method has been added for DRY purposes.
Copy link
Collaborator

@ingrinder ingrinder left a comment

Choose a reason for hiding this comment

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

Nice! This all looks good to me now. Once #70 is merged, the falsy value to not-detected string should integrate quite nicely and simplify our Entry.output method overrides (I thought about adding a commit on this PR to clean all those entries up to set None values but then we'd just have problems merging #70 😦)

Anyway, this is a nice little PR to merge! 😆

@ingrinder ingrinder merged commit 930f4cf into master May 17, 2020
@HorlogeSkynet HorlogeSkynet deleted the feature_fix/multiple_gpus branch May 17, 2020 06:36
@HorlogeSkynet
Copy link
Owner Author

Actually, I wanted to merge #70 before this one, and then rebase those commits on top of master. But no problem, we'll be simply doing it the other way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 A real glitch has been found enhancement ⬆️ Implements a new feature, fixes or improves existing ones
Projects
Status: DONE
Development

Successfully merging this pull request may close these issues.

[FEATURE] GPU support when multiple GPUs are present
2 participants