[Numpy-discussion] Re: NumPy-Discussion Digest, Vol 214, Issue 14
Hi Jacopo, Here's a couple resources you might find helpful: https://www.pyopensci.org/python-package-guide/index.html https://learn.scientific-python.org/development/ For your question about tests, sounds like you might want to parametrize a fixture https://learn.scientific-python.org/development/guides/pytest/#tests-should-stay-easy-when-scaling-out I'm sure other people on the list will have helpful advice too. Your questions might be a little outside of the scope of this list though. You could consider asking in the pyOpenSci or the Python discourse as well https://pyopensci.discourse.group/ https://discuss.python.org/ --David David Nicholson, Ph.D. https://nicholdav.info/ https://github.com/NickleDave On Wed, Jul 10, 2024 at 12:01 PM wrote: > Send NumPy-Discussion mailing list submissions to > numpy-discussion@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > or, via email, send a message with subject or body 'help' to > numpy-discussion-requ...@python.org > > You can reach the person managing the list at > numpy-discussion-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of NumPy-Discussion digest..." > > Today's Topics: > >1. music package and testing (Jacopo Donati) > > > -- > > Message: 1 > Date: Wed, 10 Jul 2024 11:41:08 - > From: "Jacopo Donati" > Subject: [Numpy-discussion] music package and testing > To: numpy-discussion@python.org > Message-ID: <172061166828.21249.2941220348120809...@mail.python.org> > Content-Type: text/plain; charset="utf-8" > > Hi there, > > I'm writing on behalf of the team of `music`, a package that generates and > manipulates sound in a mathematically precise manner. You can find it > here: https://github.com/ttm/music > > We are fixing the library so that it conforms as much as possible to the > characteristics of the other libraries in the numpy universe. Can you give > us any suggestion regarding code organization, naming convention, etc.? > > Also, we are writing the tests and we need some help to think those for > the most complex functions. For example, we test the synth of a simple > note with this test: > https://github.com/jacopodonati/music/blob/c33e3eb80e7d4d6455f442ebb12ed16a82480505/tests/core/synths/test_notes.py#L9 > But what if we have to test the synth of a note with both a change in > pitch and a vibrato applied to it? What would be the best approach for a > test? > For reference, this is the function to synth that kind of note: > https://github.com/jacopodonati/music/blob/c33e3eb80e7d4d6455f442ebb12ed16a82480505/music/core/synths/notes.py#L421 > > Any help will be very much appreciated! > > Regards, > > jd > > -- > > Subject: Digest Footer > > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > > -- > > End of NumPy-Discussion Digest, Vol 214, Issue 14 > * > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 132, Issue 1
van der Walt > wrote: > > > On Tue, Sep 5, 2017, at 13:25, Charles R Harris wrote: > > > > > > On Tue, Sep 5, 2017 at 12:36 PM, Stefan van der Walt < > stef...@berkeley.edu > > > wrote: > > > > Shall we add a citation to Travis's "Guide to NumPy (2nd ed.)" on both > > > > > > What is the citation for? > > > > > > It's the suggested reference to add to your paper, if you use the NumPy > > package in your work. > > > > St?fan > > > > > > ___ > > NumPy-Discussion mailing list > > NumPy-Discussion@python.org > > https://mail.python.org/mailman/listinfo/numpy-discussion > > > > > -- next part -- > An HTML attachment was scrubbed... > URL: <http://mail.python.org/pipermail/numpy-discussion/ > attachments/20170905/a675afed/attachment-0001.html> > > -- > > Message: 5 > Date: Tue, 5 Sep 2017 14:21:24 -0700 > From: Feng Yu > To: Discussion of Numerical Python > Subject: Re: [Numpy-discussion] NumPy default citation > Message-ID: > @mail.gmail.com> > Content-Type: text/plain; charset="UTF-8" > > str(numpy.version.citation) and numpy.version.citation.to_bibtex()? > > On Tue, Sep 5, 2017 at 2:15 PM, Paul Hobson wrote: > > Just a thought that popped into my head: > > It'd be cool with the sci/py/data stack had a convention of > > .citation so I could look it up w/o leaving my jupyter notebook > :) > > > > -paul > > > > On Tue, Sep 5, 2017 at 1:29 PM, Stefan van der Walt < > stef...@berkeley.edu> > > wrote: > >> > >> On Tue, Sep 5, 2017, at 13:25, Charles R Harris wrote: > >> > >> > >> On Tue, Sep 5, 2017 at 12:36 PM, Stefan van der Walt > >> wrote: > >> > >> Shall we add a citation to Travis's "Guide to NumPy (2nd ed.)" on both > >> > >> > >> What is the citation for? > >> > >> > >> It's the suggested reference to add to your paper, if you use the NumPy > >> package in your work. > >> > >> 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 > > > > > -- > > Subject: Digest Footer > > ___ > NumPy-Discussion mailing list > NumPy-Discussion@python.org > https://mail.python.org/mailman/listinfo/numpy-discussion > > > -- > > End of NumPy-Discussion Digest, Vol 132, Issue 1 > > -- David Nicholson, Ph.D. Sober Lab <http://www.biology.emory.edu/research/Sober/Home.html>, Emory Neuroscience Program. <http://www.emory.edu/NEUROSCIENCE/> www.nicholdav.info; <http://www.nicholdav.info>https://github.com/NickleDave ___ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
[Numpy-discussion] Re: NumPy-Discussion Digest, Vol 182, Issue 36
The solution for not rendering Markdown files already works for .rst files, you append ?plain=1 to the url as in this issue: https://github.com/numpy/numpy/issues/20438 On Tue, Nov 23, 2021, 12:00 PM wrote: > Send NumPy-Discussion mailing list submissions to > numpy-discussion@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > or, via email, send a message with subject or body 'help' to > numpy-discussion-requ...@python.org > > You can reach the person managing the list at > numpy-discussion-ow...@python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of NumPy-Discussion digest..." > > Today's Topics: > >1. Ask GitHub to provide an option to not render .rst files > (Warren Weckesser) >2. Re: Code formatters (Adrin) > > > -- > > Message: 1 > Date: Mon, 22 Nov 2021 12:38:41 -0500 > From: Warren Weckesser > Subject: [Numpy-discussion] Ask GitHub to provide an option to not > render .rst files > To: Discussion of Numerical Python , > SciPy Developers List > Message-ID: > ak-m0kkmorev8cks6veaekokdv4uze0...@mail.gmail.com> > Content-Type: text/plain; charset="UTF-8" > > Hey all, > > If you've ever tried to inspect a file on github with the `.rst` > extension, there's a good chance that you were frustrated by GitHub > providing a rendered view *only* of the file, with no option to view > the source code like any other text file. It is certainly nice to > have a rendered view, but often I want to inspect the actual source > code (e.g. to find out at which line a heading occurs, perhaps to > include a link to it in a pull request). There is the "raw" option, > or you could click "edit", but what is really desired is a view of the > source like any other source code. > > Files with the `.md` extension are also rendered by default, but there > are buttons that allow you to either "Display the source blob" or > "Display the rendered blob". There is no such option for `.rst` files. > If they can do it for `.md` files, it seems like it should be easy to > do the same for `.rst` files. > > I've tried creating a ticket on github about this, but it seems like > tickets go to the wrong group. The response I got was from the > "GitHub Support" team, and they said they forwarded the request to the > "Product" team. (It's all GitHub to me.) It was also suggested that > I bring this up in a public feedback discussions, so I did: > > https://github.com/github/feedback/discussions/7999 > > If you have a moment, could you add a comment, or click the upvote > button, or add some other feedback to the discussion? It would be > nice to get this simple enhancement into the GitHub site. > > Thanks, > > Warren > > -- > > Message: 2 > Date: Mon, 22 Nov 2021 23:31:32 +0100 > From: Adrin > Subject: [Numpy-discussion] Re: Code formatters > To: Discussion of Numerical Python > Message-ID: > < > caeorw4-1cvr2+taffp382gcvsqcesnbea5_x2zjgn26kufc...@mail.gmail.com> > Content-Type: multipart/alternative; > boundary="73b9aa05d168305c" > > This discussion and the linked gist may be of some help: > https://github.com/scikit-learn/scikit-learn/issues/11336 > > On Mon, Nov 22, 2021 at 12:02 PM Andrew Nelson wrote: > > > Is there a way to figure out which files are not touched by any open PR? > > That way numpy might be able to do a lot more than an incremental code > > alignment. > > ___ > > NumPy-Discussion mailing list -- numpy-discussion@python.org > > To unsubscribe send an email to numpy-discussion-le...@python.org > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > Member address: adrin.jal...@gmail.com > > > -- next part -- > A message part incompatible with plain text digests has been removed ... > Name: not available > Type: text/html > Size: 1388 bytes > Desc: not available > > -- > > Subject: Digest Footer > > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > > -- > > End of NumPy-Discussion Digest, Vol 182, Issue 36 > * > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com