Skip to content
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

Update ASV config to use paramers #2776

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j9ac9k
Copy link
Member

@j9ac9k j9ac9k commented Jul 13, 2023

  • renderImageItem now uses parameterization better to keep track of attributes of a given test
  • The correct cupy version is better detected
  • Restructured so that only one environment is created; but different PYQTGRAPH_QT_LIB's are cycled through forcing the use of different Qt bindings.

TODO:

  • Remove commented-out code
  • Re-add PyQt5, PySide2 and PySide6 environments

benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
benchmarks/renderImageItem.py Fixed Show fixed Hide fixed
@j9ac9k j9ac9k force-pushed the update-asv-for-images branch 2 times, most recently from d76cf91 to 6649574 Compare July 13, 2023 23:19
@j9ac9k j9ac9k force-pushed the update-asv-for-images branch 3 times, most recently from 1ccbb3e to 4e4a651 Compare July 16, 2023 05:21
benchmarks/renderImageItem.py Fixed Show resolved Hide resolved
for size in self.params.sizes:
size_with_channels = (size[0], size[1], channels) if channels != 1 else size
if xp.dtype(dtype) in (xp.float32, xp.float64):
data = xp.random.default_rng().standard_normal(
Copy link
Contributor

Choose a reason for hiding this comment

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

Calling default_rng() instantiates a new Generator object. Was that intended or could a single Generator object be used?

Copy link
Member Author

Choose a reason for hiding this comment

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

I just went w/ the example in the docs; you're right, should probably just use a single generator object

benchmarks/renderImageItem.py Dismissed Show dismissed Hide dismissed
CONTRIBUTING.md Outdated
python setup.py asv_config
asv config
Copy link
Contributor

Choose a reason for hiding this comment

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

Error running this command:

(asv-test) PS C:\Users\...\pyqtgraph> asv config
usage: asv [-h] [--verbose] [--config CONFIG] [--version]
           {help,quickstart,machine,setup,run,dev,continuous,find,rm,publish,preview,profile,update,show,compare,check,gh-pages} ...
asv: error: argument {help,quickstart,machine,setup,run,dev,continuous,find,rm,publish,preview,profile,update,show,compare,check,gh-pages}: invalid choice: 'config' (choose from 'help', 'quickstart', 'machine', 'setup', 'run', 'dev', 'continuous', 'find', 'rm', 'publish', 'preview', 'profile', 'update', 'show', 'compare', 'check', 'gh-pages')

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what I get for going off memory, pretty sure it should be asv setup

Copy link
Contributor

@ntjess ntjess Jul 19, 2023

Choose a reason for hiding this comment

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

Do tests require python 3.11? If so, might be worth specifying in the docs

(asv-test) PS C:\Users\ntjess\Desktop\git\pyqtgraph> asv setup
· No executable found for python 3.11
· No executable found for python 3.11
· No executable found for python 3.11

Disregard, I see it earlier

Copy link
Member Author

Choose a reason for hiding this comment

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

Huh; I'm fairly certain I tested on Python 3.11... haven't seen that error before tho

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.

None yet

3 participants