Skip to content

discussion: should the package be renamed to avoid ambiguity? #183

Closed

Description

@john-halloran

Problem

  • "sNMF" is already in use as an identifier for a technique called "sparse non-negative matrix factorization"
  • Uptake of this older sNMF does not seem to be high, but there are a few sources for it, including papers as recent as 2022, and it's the current top result for the term on search engines and chatbots.

Proposed solution

  • There are two potential solutions. One is to bet that sparse NMF will not gain much further traction and that we will become the dominant program associated with the acronym or that they will coexist, like PDF already does with the PDF file format
  • The other option would be to formally rename the package something like stretched-nmf, which is the primary term used in the original stretched NMF paper. One pro of this is that it would be clearer from just the name what the package does. Only major con is that it's less elegant.

Activity

  1. john-halloran commented on Feb 10, 2026

    @john-halloran
    ContributorAuthor

    After thinking more, I feel positively about calling it stretched-nmf. The biggest obstacle (and this may be a killer) is that the original paper has a presumably unchangeable link to this github repo called diffpy.snmf, but maybe github alias that if you change the name. Not sure how that works.

  2. sbillinge commented on Feb 10, 2026

    @sbillinge
    Contributor

    we can keep the repo and point to the new one if GitHub doesn't do it automatically. I think I agree, that stretched-nmf is less ambiguous and could snag a larger audience. Please could you make a list of things we have to do to make this happen. I can change the name of the repo, and change its URL (I prefer to do this to avoid problems in the future). What else?

  3. john-halloran commented on Feb 10, 2026

    @john-halloran
    ContributorAuthor
    • Rename the repo and URL
    • Confirm that the old URL is aliased to the new one, and if not, point it to the new location
    • Recut the package with the new name
    • Change all code references snmf -> stretched-nmf
    • Change all documentation references snmf -> stretched-nmf
    • (for me only) Update all internal testing scripts, imports, etc

    Questions for you:

    • Is diffpy.stretched-nmf an okay name? No other diffpy projects have a dash currently.
    • Should the documentation/examples internally use "snmf" to avoid repetition like numpy -> np, or are we dispensing with the short form entirely?
  4. sbillinge commented on Feb 10, 2026

    @sbillinge
    Contributor
    • Is diffpy.stretched-nmf an okay name? No other diffpy projects have a dash currently.

    I prefer the dash, so let's go with it. scikit-package has a dash, so we have gradually been moving over to this new standard, but not gone back.

    • Should the documentation/examples internally use "snmf" to avoid repetition like numpy -> np, or are we dispensing with the short form entirely?

    Yes, I would maybe import diffpy.stretched_nmf as snmf or sthg like that. There is advertising (making it discoverable on PyPi) and ease of use. By the time we are importing it we know what it does and don't need to be reminded.

  5. sbillinge commented on Feb 10, 2026

    @sbillinge
    Contributor

    It looks like the rename also updates the URL automatically these days (I don't remember it doing that before) so that is all done and I checked it off. It has broken the link though, the old one doesn't seem to resolve to the new one, so please think about how to fix that.

  6. john-halloran commented on Feb 10, 2026

    @john-halloran
    ContributorAuthor

    Maybe it just took a minute to update, but the old link works fine for me now. Hopefully that is a permanent redirect and if not, the fix should be as simple as making a new repo called diffpy.snmf. But let’s not do that unless it breaks in the future.

  7. sbillinge commented on Feb 10, 2026

    @sbillinge
    Contributor

    yes, the redirect is working for me too now. Very nice. Thanks GitHub.

  8. john-halloran commented on Feb 18, 2026

    @john-halloran
    ContributorAuthor

    Closed by #185.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions