Skip to content

Commit 42a7090

Browse files
committed
Add source files
1 parent 1cf0408 commit 42a7090

File tree

4 files changed

+77
-1
lines changed

4 files changed

+77
-1
lines changed

src/diffpy/__init__.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
##############################################################################
3+
#
4+
# (c) 2024 The Trustees of Columbia University in the City of New York.
5+
# All rights reserved.
6+
#
7+
# File coded by: Billinge Group members and community contributors.
8+
#
9+
# See GitHub contributions for a more detailed list of contributors.
10+
# https://github.com/diffpy/diffpy.nmf_mapping/graphs/contributors
11+
#
12+
# See LICENSE.rst for license information.
13+
#
14+
##############################################################################
15+
16+
"""Blank namespace package for module diffpy."""
17+
18+
19+
from pkgutil import extend_path
20+
21+
__path__ = extend_path(__path__, __name__)
22+
23+
# End of file
24+

src/diffpy/nmf_mapping/__init__.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
##############################################################################
3+
#
4+
# (c) 2024 The Trustees of Columbia University in the City of New York.
5+
# All rights reserved.
6+
#
7+
# File coded by: Billinge Group members and community contributors.
8+
#
9+
# See GitHub contributions for a more detailed list of contributors.
10+
# https://github.com/diffpy/diffpy.nmf_mapping/graphs/contributors
11+
#
12+
# See LICENSE.rst for license information.
13+
#
14+
##############################################################################
15+
16+
"""Run NMF analysis on PDF and XRD data"""
17+
18+
# package version
19+
from diffpy.nmf_mapping.version import __version__
20+
21+
# silence the pyflakes syntax checker
22+
assert __version__ or True
23+
24+
# End of file
25+

src/diffpy/nmf_mapping/nmf_mapping_code.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
import numpy as np
1212
import pandas as pd
1313
from bg_mpl_stylesheets.styles import all_styles
14-
from diffpy.utils.parsers.loaddata import loadData
1514
from scipy import interpolate
1615
from sklearn.decomposition import NMF, PCA
1716
from sklearn.exceptions import ConvergenceWarning
1817

18+
from diffpy.utils.parsers.loaddata import loadData
19+
1920
plt.style.use(all_styles["bg_style"])
2021
warnings.filterwarnings("ignore", category=FutureWarning)
2122
warnings.filterwarnings("ignore", category=ConvergenceWarning)

src/diffpy/nmf_mapping/version.py

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/usr/bin/env python
2+
##############################################################################
3+
#
4+
# (c) 2024 The Trustees of Columbia University in the City of New York.
5+
# All rights reserved.
6+
#
7+
# File coded by: Billinge Group members and community contributors.
8+
#
9+
# See GitHub contributions for a more detailed list of contributors.
10+
# https://github.com/diffpy/diffpy.nmf_mapping/graphs/contributors
11+
#
12+
# See LICENSE.rst for license information.
13+
#
14+
##############################################################################
15+
16+
"""Definition of __version__."""
17+
18+
# We do not use the other three variables, but can be added back if needed.
19+
# __all__ = ["__date__", "__git_commit__", "__timestamp__", "__version__"]
20+
21+
# obtain version information
22+
from importlib.metadata import version
23+
24+
__version__ = version("diffpy.nmf_mapping")
25+
26+
# End of file

0 commit comments

Comments
 (0)