Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .github/workflows/publish-docs-on-release.yml

This file was deleted.

24 changes: 24 additions & 0 deletions news/fix-cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Add entry point to the application
* Fix CLI bug due to typo

**Security:**

* <news item>
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ maintainers = [
description = "A python package implementing the stretched NMF algorithm."
keywords = ['diffpy', 'PDF']
readme = "README.rst"
requires-python = ">=3.10"
requires-python = ">=3.10, <3.13"
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
Expand Down Expand Up @@ -42,6 +42,9 @@ template = "{tag}"
dev_template = "{tag}"
dirty_template = "{tag}"

[project.scripts]
snmf = "diffpy.snmf.stretchednmfapp:main"

[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
include = ["*"] # package names should match these glob patterns (["*"] by default)
Expand Down
6 changes: 5 additions & 1 deletion src/diffpy/snmf/stretchednmfapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def create_parser():
help="The directory where the results will be written. Defaults to '<input_directory>/snmf_results'.",
)
parser.add_argument(
"t",
"-t",
"--data-type",
type=str,
default=None,
Expand Down Expand Up @@ -58,3 +58,7 @@ def main():
variables = initialize_variables(lifted_input_data, args.number_of_components, args.data_type)
components = initialize_components(variables["number_of_components"], variables["number_of_signals"], grid)
return components


if __name__ == "__main__":
main()
Loading