Re: [Numpy-discussion] PR for keywordlabeler

2021-06-13 Thread Matti Picus


On 10/6/21 10:20 pm, Charles R Harris wrote:

Hi All,

There is a pending PR  that 
uses keywordlabeler  to 
automatically label PRs and issues. Installing the app requires giving 
it write permissions to PRs and issues. This isn't different than with 
the current labeler, but I note that we don't have a procedure for 
deciding such issues that may have security implications. So I am 
posting here before proceeding with app installation.


Thoughts?

Chuck



If there was a way to pin these actions to a hash tag that would be 
better, at the least it should pin to a version. We already use third 
party actions in the github workflow: checkout and setup-python (both 
specifying a "version" via "@v2"), 
larsoner/circleci-artifacts-redirector-action@master (hmm, that should 
pin to a version).



Matti

___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Checking if all array elements are whole numbers using the C-API

2021-06-13 Thread zoj613
After reading the docs, it turns out that  `np.PyArray_FROM_OTF(a,
np.NPY_LONG, np.NPY_ARRAY_FORCECAST) != np.PyArray_FROM_O(a)` prevents the
error from occurring.



--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


[Numpy-discussion] request to remove the numpy-aarch64 package from PyPI

2021-06-13 Thread Ralf Gommers
Hi all,

FYI, I noticed this package that claimed to be maintained by us:
https://pypi.org/project/numpy-aarch64/. That's not ours, so I tried to
contact the author (no email provided, but guessed the same username on
GitHub) and asked to remove it:
https://github.com/tomasriv/DNA_Sequence/issues/1.

There are a very large number of packages with "numpy" in the name on PyPI,
and there's no way we can audit/police that effectively, but if it's a
rebuild that pretends like it's official then I think it's worth doing
something about. It could contain malicious code for all we know.

Cheers,
Ralf
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] request to remove the numpy-aarch64 package from PyPI

2021-06-13 Thread Charles R Harris
On Sun, Jun 13, 2021 at 10:47 AM Ralf Gommers 
wrote:

> Hi all,
>
> FYI, I noticed this package that claimed to be maintained by us:
> https://pypi.org/project/numpy-aarch64/. That's not ours, so I tried to
> contact the author (no email provided, but guessed the same username on
> GitHub) and asked to remove it:
> https://github.com/tomasriv/DNA_Sequence/issues/1.
>
> There are a very large number of packages with "numpy" in the name on
> PyPI, and there's no way we can audit/police that effectively, but if it's
> a rebuild that pretends like it's official then I think it's worth doing
> something about. It could contain malicious code for all we know.
>
>
That is a pretty misleading package description, would have fooled me if I
didn't know better. I didn't get the impression it was malicious, but still
. . .

 Chuck
___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] Tensor Typing presentation and discussion on Wednesday! (As part of the NumPy Community Meeting)

2021-06-13 Thread Juan Nunez-Iglesias
Thank you so much Matthew, Pradeep, and everyone else helping with this effort!

And thanks Matthew for sharing the slides — very informative! I’ve asked 
Sebastian for the recording but in the meantime I thought I’d ask a couple of 
questions about the syntax:

* why isn’t there a Subtract operator? It seems that Subtract[A, B] is much 
more readable than Add[A, Multiply[Literal[-1], B]]?
* is there a prospect for using actual operators and actual literals here? I 
think that a lot of reticence about Python typing comes from the annotations 
being so difficult to read. There’s been some great improvements recently with 
“Optional[Tuple[Union[Float, Int]]]” becoming “tuple[float | int] | None”, and 
I hope we can leapfrog the awkward phase with this tensor typing stuff. Again, 
A - B is much more readable again than Subtract[A, B]. And B-2 is much more 
readable than Add[B, Literal[-2]].

Other than that, love the work, thank you again!

Juan.

> On 11 Jun 2021, at 5:08 am, Matthew Rahtz  wrote:
> 
> Some links I promised to send around:
> https://github.com/deepmind/tensor_annotations 
>  which has a bunch of 
> experimental shape-aware stubs for TensorFlow and JAX using 'semantic' axis 
> labels
> https://github.com/pradeep90/pytorch_examples 
>  ditto for TensorFlow and 
> PyTorch using value-based axis labels
> https://arxiv.org/pdf/2102.13254.pdf  
> Similar work in TensorFlow for Swift
> Slides 
> 
>  for our presentation
> Tensor typing meeting details 
> 
> Thanks again, everyone!
> 
> On Wed, 9 Jun 2021 at 22:28, Sebastian Berg  > wrote:
> On Tue, 2021-06-08 at 11:40 -0700, Stefan van der Walt wrote:
> > On Tue, Jun 8, 2021, at 03:23, Juan Nunez-Iglesias wrote:
> > > Hello! Any chance this could be recorded for those of us in useless
> > > time zones? 😂 
> > 
> > I added a note to the agenda; we'll ask the speakers and record if
> > they don't mind.
> 
> 
> We have made a recording, but I did not plan on making it available
> publicly.  Please contact me directly if you are interested.
> 
> Cheers,
> 
> Sebastian
> 
> 
> > Stéfan
> > ___
> > NumPy-Discussion mailing list
> > NumPy-Discussion@python.org 
> > https://mail.python.org/mailman/listinfo/numpy-discussion 
> > 
> 
> 
> ___
> NumPy-Discussion mailing list
> NumPy-Discussion@python.org 
> https://mail.python.org/mailman/listinfo/numpy-discussion 
> 
> ___
> NumPy-Discussion mailing list
> NumPy-Discussion@python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion

___
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion