Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 24 10:12
    grlee77 removed as member
  • May 09 16:57
    hameerabbasi review_requested #273
  • May 09 16:45
    BvB93 commented #273
  • Mar 20 19:53
    hameerabbasi closed #75
  • Mar 20 19:53
    hameerabbasi commented #75
  • Mar 20 08:12
    hameerabbasi commented #75
  • Mar 20 05:49
    SJ001 commented #75
  • Mar 20 05:32
    hameerabbasi commented #75
  • Mar 20 05:29
    SJ001 commented #75
  • Mar 20 05:27
    SJ001 commented #75
  • Mar 20 05:18
    hameerabbasi commented #75
  • Mar 20 05:10
    SJ001 opened #75
  • Mar 07 03:58
    thomasjpfan commented #274
  • Mar 07 03:58
    thomasjpfan commented #274
  • Mar 07 03:58
    thomasjpfan commented #274
  • Mar 04 00:01
    thomasjpfan commented #274
  • Mar 03 22:40
    peterbell10 commented #274
  • Mar 03 20:34
    thomasjpfan commented #274
  • Mar 03 15:03
    peterbell10 synchronize #274
  • Mar 03 15:03

    peterbell10 on annotation-extractor-replacer

    Move annotations out from funct… (compare)

Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/260|\#260 Modernize the CI and wheel building system.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request ready for review by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/260|\#260 Modernize the CI and wheel building system.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by hameerabbasi
<https://github.com/Quansight-Labs/uarray/issues/259|\#259 Move to GitHub Actions?>

[Unknown, Quansight]
3 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@a996dd1- Modernize the CI and wheel building system.Quansight-Labs/uarray@b672ede- Make clang-format happy.Quansight-Labs/uarray@1c38db3` - Merge pull request #260 from hameerabbasi/update-cibw

[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/260|\#260 Modernize the CI and wheel building system.>

Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/261|\#261 Fix typo in README.md>
Quansight
@quansightai_twitter
[Unknown, Quansight]
3 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@c330866- Fix typo in README.mdQuansight-Labs/uarray@4e4d310- Make coverage work again.Quansight-Labs/uarray@32d18f6` - Merge pull request #261 from hameerabbasi/typo
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/261|\#261 Fix typo in README.md>
Gregory Lee
@grlee77
Is there any plan to upload a more recent uarray release to PyPI in the near term? (Thanks @hameerabbasi for updating the CI/build infrastructure last week!). I ask because I want to add a version to a requirements.txt that is new enough to have the try_last argument for backends and right now v0.6.0 is the latest on PyPI.
Hameer Abbasi
@hameerabbasi
@grlee77 Actually the wheels that come out of GitHub Actions are all untagged, as the checkout Action doesn’t pull tags. Would you know if it pulls tags if it was triggered by a tag?
That’s the reason I didn’t do it so far.
Hameer Abbasi
@hameerabbasi
I figured out it does by looking at a few example repos -- I'll release something by the end of the week, probably sooner.
Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by hameerabbasi
<https://github.com/Quansight-Labs/uarray/issues/201|\#201 Work with dependency injection instead of following a protocol>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/262|\#262 Change artifact names to be nicer.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
3 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@25de14c- Change artifact names to be nicer.Quansight-Labs/uarray@c136ee9- Update versioneer.Quansight-Labs/uarray@3562def` - Merge pull request #262 from hameerabbasi/artifact-names
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/262|\#262 Change artifact names to be nicer.>
Hameer Abbasi
@hameerabbasi
Seems like versioneer needs an upstream fix: python-versioneer/python-versioneer#273
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/263|\#263 Fix versioneer on Windows.>
Refer to jenshnielsen/Qcodes@0d21c32#diff-ee14bc781b0b3d0661bc328b35876e07598a2337ce225fba7faa5c08301572a1
Quansight
@quansightai_twitter
[Unknown, Quansight]
2 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@e946bdc- Fix versioneer on Windows.Quansight-Labs/uarray@d313e90` - Merge pull request #263 from hameerabbasi/fix-versioneer
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/263|\#263 Fix versioneer on Windows.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/264|\#264 Downgrade versioneer to 0.20.>
[Unknown, Quansight]
2 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@fa53ac3- Downgrade versioneer to 0.20.Quansight-Labs/uarray@35e28db` - Merge pull request #264 from hameerabbasi/fix-versioneer
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/264|\#264 Downgrade versioneer to 0.20.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by rgommers
<https://github.com/Quansight-Labs/uarray/issues/122|\#122 Create new notebooks detailing use and integration of uarray, metadsl, and moa>
Quansight
@quansightai_twitter

[Unknown, Quansight]
New issue created by Smit-create
<https://github.com/Quansight-Labs/uarray/issues/265|\#265 BUG: \`all\_of\_type\` changes dimension of 2D array>
Here is the code that shows that all_of_type changes the dimension of sos_f32 below:

>>> from scipy._lib.uarray import all_of_type
>>> import numpy as np
>>> @all_of_type(np.ndarray)
... def f(p):
...     return p
... 
>>> sos_f32  = np.array([[4., 5., 6., 1., 2., 3.]], dtype=np.float32)
>>> sos_f32
array([[4., 5., 6., 1., 2., 3.]], dtype=float32)
>>> sos_f32.shape
(1, 6)
>>> f(sos_f32)
(<Dispatchable: type=<class 'numpy.ndarray'>, value=array([4., 5., 6., 1., 2., 3.], dtype=float32)>,)
>>> f(sos_f32)[0].value.shape
(6,)

I was expecting sos_f32 and f(sos_f32)[0].value to have same dimensions. Is this a bug?

Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/266|\#266 Change versioneer to setuptools\_scm.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/266|\#266 Change versioneer to setuptools\_scm.>
[Unknown, Quansight]
2 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@285a805- Change versioneer to setuptools_scm.Quansight-Labs/uarray@43e0788` - Merge pull request #266 from hameerabbasi/setuptools-scm
Hameer Abbasi
@hameerabbasi
@grlee77 uarray wheels are out! (Unless you want to use sdists).
1 reply
Conda packages too!
Hameer Abbasi
@hameerabbasi
Sorry it took so long, was struggling with versioning issues.
Quansight
@quansightai_twitter
[Gregory Lee, Quansight] Great, thanks @Hameer!
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by rgommers
<https://github.com/Quansight-Labs/uarray/pull/267|\#267 Fix build warning from vectorcall.h>
Warning looks like:

[9/1557] Compiling C++ object scipy/_lib/_uarray/_uarray.cpython-310-darwin.so.p/vectorcall.cxx.o
warning: unknown warning option '-Wno-terminate' [-Wunknown-warning-option]
In file included from ../scipy/_lib/_uarray/vectorcall.cxx:1:
../scipy/_lib/_uarray/vectorcall.h:12:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
     ^
../scipy/_lib/_uarray/vectorcall.h:10:5: note: expanded from macro 'Q_HAS_VECTORCALL'
  (!defined(PYPY_VERSION) && (PY_VERSION_HEX >= 0x03080000))
    ^
../scipy/_lib/_uarray/vectorcall.h:20:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
     ^
../scipy/_lib/_uarray/vectorcall.h:10:5: note: expanded from macro 'Q_HAS_VECTORCALL'
  (!defined(PYPY_VERSION) && (PY_VERSION_HEX >= 0x03080000))
    ^
../scipy/_lib/_uarray/vectorcall.h:26:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
     ^
../scipy/_lib/_uarray/vectorcall.h:10:5: note: expanded from macro 'Q_HAS_VECTORCALL'
  (!defined(PYPY_VERSION) && (PY_VERSION_HEX >= 0x03080000))
    ^
4 warnings generated.

Reviewers: @peterbell10

Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/268|\#268 Update cibw>
Quansight
@quansightai_twitter
[Unknown, Quansight]
1 new commit pushed to `master` by peterbell10
`Quansight-Labs/uarray@4531565` - Fix build warning from vectorcall.h (#267)
[Unknown, Quansight]
Pull request merged by peterbell10
<https://github.com/Quansight-Labs/uarray/pull/267|\#267 Fix build warning from vectorcall.h>
Quansight
@quansightai_twitter
[Unknown, Quansight]
1 new commit pushed to `master` by peterbell10
`Quansight-Labs/uarray@aa94c5a` - Minor maintenance fixes. (#268)
[Unknown, Quansight]
Pull request merged by peterbell10
<https://github.com/Quansight-Labs/uarray/pull/268|\#268 Minor maintenance fixes.>
Quansight
@quansightai_twitter

[Unknown, Quansight]
New issue created by rgommers
<https://github.com/Quansight-Labs/uarray/issues/269|\#269 CI is broken but silently passing>
Latest GitHub Actions run (link):

image

Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by rgommers
<https://github.com/Quansight-Labs/uarray/issues/269|\#269 CI is broken but silently passing>
Quansight
@quansightai_twitter

[Unknown, Quansight]
New issue created by thomasjpfan
<https://github.com/Quansight-Labs/uarray/issues/270|\#270 Build wheels with Py\_LIMITED\_API & abi3>
There are quite a few wheels for uarray on pypi. Given the limited scope of uarray, is it possible to build uarray wheels with Py_LIMITED_API on?

Looking at cryptography on pypi, there are less wheels for most architectures. (pypy still need their own builds)

XREF: pypa/cibuildwheel#78

Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by thomasjpfan
<https://github.com/Quansight-Labs/uarray/issues/270|\#270 Build wheels with Py\_LIMITED\_API & abi3>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by oxidase
<https://github.com/Quansight-Labs/uarray/pull/271|\#271 Remove one ref that lead to deinitialization of BackendNotImplementedError>
Remove one ref that lead to deinitialization of BackendNotImplementedError after a Py_FinalizeEx that leads to segmentation faults.
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request opened by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/272|\#272 Minor maintenance fixes.>
Quansight
@quansightai_twitter
[Unknown, Quansight]
Pull request closed by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/271|\#271 Remove one ref that lead to deinitialization of BackendNotImplementedError>
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by BvB93
<https://github.com/Quansight-Labs/uarray/pull/273|\#273 ENH: Add annotations for the \`uarray.\_uarray\` extension module>
Recently I noticed in scipy that uarray is still lacking type annotations, so if there is any interest I would very much like to contribute them.

This PR in particular focuses on the uarray._uarray extension module. As the latter is written in C++, it is necessary to resort to .pyi stub files for distributing PEP 484 type annotations.

Quansight
@quansightai_twitter
[Unknown, Quansight]
2 new commits pushed to `master` by hameerabbasi
`Quansight-Labs/uarray@c62a02a- Minor maintenance fixes.Quansight-Labs/uarray@ca75f1e` - Merge pull request #272 from hameerabbasi/minor
[Unknown, Quansight]
Pull request merged by hameerabbasi
<https://github.com/Quansight-Labs/uarray/pull/272|\#272 Minor maintenance fixes.>
Quansight
@quansightai_twitter

[Unknown, Quansight]
Pull request opened by peterbell10
<https://github.com/Quansight-Labs/uarray/pull/274|\#274 Proof of concept: annotation-based argument extractor/replacer>
This explores the posibility of automatically generating the argument extractor and replacer based on inline type annotations (for simple cases). So, for example scipy.fft.fft might look like:

@_dispatch
def fft(x: ua.typing.Dispatchable[ArrayLike, np.ndarray], n=None, axis=-1,
        norm=None, overwrite_x=False, workers=None, *, plan=None):
    pass

The signature is inspected ahead-of-time so as to minimize call overhead but a Python implementation is still too slow. ~400 ns for
even a simple f(x) signature. However, if it were lowered to C++ then the concept may still be viable.

This also relies on typing.Annotated to specify dispatch_type and coercible but typing.Annotated itself requires Python 3.9. It may be possible to emulate on earlier python versions, otherwise I think the dispatch metadata would need to go elsewhere. Perhaps something like:

@_dispatch([ua.DispatchableArg(name='x', dispatch_type=np.ndarray, coercible=True)])
def fft(x, n=None, axis=-1, norm=None, overwrite_x=False, workers=None, *, plan=None):
    pass

cc @thomasjpfan

Quansight
@quansightai_twitter
[Unknown, Quansight]
New issue created by SJ001
<https://github.com/Quansight-Labs/unumpy/issues/75|\#75 Error propagation in determinant>
Hello! I would like to do error propagation when calculating the determinant of a matrix (whose elements have errors). Is there a way to do that? I see there is an unumpy.ulinalg package, but it doesn't seem to have a determinant option. Thank you
Quansight
@quansightai_twitter
[Unknown, Quansight]
Issue closed by hameerabbasi
<https://github.com/Quansight-Labs/unumpy/issues/75|\#75 Error propagation in determinant>