Skip to content

Commit 6884074

Browse files
authored
Merge pull request #2 from bobleesj/flake8
Cookiecutter pre-commit workflow (except flake8)
2 parents 73b6d5f + 4a26b4e commit 6884074

32 files changed

+171
-366
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ lib
2020
lib64
2121
eggs
2222
parts
23-
.installed.cfg
23+
.installed.cfg

.pre-commit-config.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
default_language_version:
2+
python: python3
3+
ci:
4+
autofix_commit_msg: |
5+
[pre-commit.ci] auto fixes from pre-commit hooks
6+
autofix_prs: true
7+
autoupdate_branch: 'pre-commit-autoupdate'
8+
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
9+
autoupdate_schedule: monthly
10+
skip: [no-commit-to-branch]
11+
submodules: false
12+
repos:
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.6.0
15+
hooks:
16+
- id: check-yaml
17+
- id: end-of-file-fixer
18+
- id: trailing-whitespace
19+
exclude: '\.(rst|txt)$'
20+
- repo: https://github.com/psf/black
21+
rev: 24.4.2
22+
hooks:
23+
- id: black
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 7.0.0
26+
hooks:
27+
- id: flake8
28+
- repo: https://github.com/pycqa/isort
29+
rev: 5.13.2
30+
hooks:
31+
- id: isort
32+
args: ["--profile", "black"]
33+
- repo: https://github.com/kynan/nbstripout
34+
rev: 0.7.1
35+
hooks:
36+
- id: nbstripout
37+
- repo: https://github.com/pre-commit/pre-commit-hooks
38+
rev: v4.4.0
39+
hooks:
40+
- id: no-commit-to-branch
41+
name: Prevent Commit to Main Branch
42+
args: ["--branch", "main"]
43+
stages: [pre-commit]

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@ script:
3333

3434
notifications:
3535
email: false
36-

AUTHORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Simon J. L. Billinge <[email protected]>
2-
Zachary A. Thatcher<[email protected]>
2+
Zachary A. Thatcher<[email protected]>

CHANGELOG.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
3030
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
3131
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
3232
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,36 +23,36 @@ Input:
2323
- format: string (filepath)
2424
- eg: '/Users/zthatcher/Desktop/Data/nmf_mapping/time_data/' or . for cwd
2525

26-
- save-files (optional): boolean as to whether or not you would like to save the dataframes, plots, and
26+
- save-files (optional): boolean as to whether or not you would like to save the dataframes, plots, and
2727
components (note: pdf data saves as .cgr and xrd data saves as .xy)
2828
- format: boolean
2929
- eg: --save-files False
3030
- default: True
31-
31+
3232
- threshold (optional and mut-exc to other thresholds): a threshold for the number of structural phases graphed (NMF components returned)
3333
- format as: integer
3434
- eg: --threshold 2
3535
- default: 10
36-
36+
3737
- improve-thresh (optional and mut-exc to other thresholds): a threshold (between 0 and 1) for the relative improvement ratio necessary to
3838
add an additional component. Default is 0.001. 0.1 Recommended for real data.
3939
- format: float
4040
- eg: --improve-thresh 0.1
4141
- default = 0.001
42-
42+
4343
- pca-thresh (optional and mut-exc to other thresholds): explained variance threshold for PCA component counting cutoff
4444
- format: float
4545
- eg: --pca-thresh 0.95
4646
- default = None
47-
47+
4848
- n-iter (optional): total number of iterations to run NMF algo. Defaults to 1000. 10000 typical to publish.
4949
- format: int
5050
- eg: --n-iter 10000
5151
- default: 1000
5252

53-
- x-range (optional): the active x-range over which to run the NMF analysis (must be between shortest and
53+
- x-range (optional): the active x-range over which to run the NMF analysis (must be between shortest and
5454
longest range in the set of files)
55-
- format: pair of integers representing the lower r bound and the upper r bound with a comma between
55+
- format: pair of integers representing the lower r bound and the upper r bound with a comma between
5656
the lower and upper bound
5757
- eg: --xrange 5,10 12,15
5858
- default: entire range
@@ -71,7 +71,7 @@ longest range in the set of files)
7171
- format: boolean
7272
- eg: --show False
7373
- default: True
74-
74+
7575
Returns:
7676
- Figure One: PDF or XRD pattern of structural phase components contributing to the NMF reconstruction
7777
- Figure Two: Weights of the phase components plotted in Figure One
@@ -81,4 +81,3 @@ Returns:
8181
Example:
8282

8383
nmf_mapping . --threshold 3 --xrange 5,10 --show True
84-

diffpy/nmf_mapping/nmf_mapping/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import os
22
import sys
3-
from argparse import ArgumentParser, RawTextHelpFormatter, Namespace
43
import time
4+
from argparse import ArgumentParser, Namespace, RawTextHelpFormatter
55
from datetime import datetime
66

7-
from diffpy.nmf_mapping import nmf
87
import numpy as np
98

9+
from diffpy.nmf_mapping import nmf
10+
1011

1112
def boolean_string(s):
1213
try:
@@ -24,9 +25,9 @@ def main(args=None):
2425
"""
2526

2627
_BANNER = """
27-
This is a package which takes a directory of 1D diffraction files
28-
(xrd or pdf) and returns json files containing the decomposed components,
29-
the phase fraction of these components from file to file,
28+
This is a package which takes a directory of 1D diffraction files
29+
(xrd or pdf) and returns json files containing the decomposed components,
30+
the phase fraction of these components from file to file,
3031
as well as the reconstruction error as a fxn of component
3132
"""
3233

diffpy/nmf_mapping/nmf_mapping/nmf_mapping_code.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
Local NMF Analysis of PDFs for PDFitc.
44
"""
55

6-
import numpy as np
7-
import pandas as pd
86
from pathlib import Path
7+
98
import matplotlib.pyplot as plt
9+
import numpy as np
10+
import pandas as pd
1011

1112
try:
1213
from bg_mpl_stylesheet.bg_mpl_stylesheet import bg_mpl_style
1314
except ImportError:
1415
print("bg_mpl_style not found. Using generic matplotlib style.")
16+
import re
17+
import warnings
18+
1519
from diffpy.utils.parsers.loaddata import loadData
1620
from scipy import interpolate
1721
from sklearn.decomposition import NMF, PCA
1822
from sklearn.exceptions import ConvergenceWarning
19-
import re
20-
21-
import warnings
2223

2324
warnings.filterwarnings("ignore", category=FutureWarning)
2425
warnings.filterwarnings("ignore", category=ConvergenceWarning)

diffpy/nmf_mapping/tests/data/different_r_grid/DIPA-H2O_3mmglass_20190908-061431_e3086a_0001_dark_corrected_img.gr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
wavelength = 0.1845
44
dataformat = QA
55
inputfile = DIPA-H2O_3mmglass_20190908-061431_e3086a_0001_dark_corrected_img.chi
6-
backgroundfile =
6+
backgroundfile =
77
mode = xray
88
bgscale = 0.0
99
composition = C6N
@@ -19,7 +19,7 @@ rpoly = 0.9
1919
[Misc]
2020
inputdir = /Users/sst/project/cal_and_int/int_20190906/chi
2121
savedir = /Users/sst/project/analysis/19st_amine/data/DIPA-H2O_3temp
22-
backgroundfilefull =
22+
backgroundfilefull =
2323

2424
#### start data
2525
#S 1

diffpy/nmf_mapping/tests/data/example_phases/LiO2.cif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ _atom_site_occupancy
255255
_atom_site_attached_hydrogens
256256
O1 O2- 4 a 0 0 0 0.40(1) 1. 0
257257
Li1 Li1+ 8 c 0.25 0.25 0.25 0.74(2) 1. 0
258-
#End of TTdata_54368-ICSD
258+
#End of TTdata_54368-ICSD

diffpy/nmf_mapping/tests/data/example_phases/RuO2_tetragonal.cif

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ _atom_site_occupancy
6969
_atom_site_attached_hydrogens
7070
Ru1 Ru4+ 2 a 0 0 0 0.384 1. 0
7171
O1 O2- 4 f 0.3058(16) 0.3058(16) 0 0.517 1. 0
72-
#End of TTdata_15071-ICSD
72+
#End of TTdata_15071-ICSD
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"0":{"1":297.2320764418,"2":99.3169152025,"3":0.1930209752,"4":0.1930209752,"5":0.1930209752,"6":0.1930209752,"7":0.1930209752,"8":0.1930209752,"9":0.1930209752,"10":0.1930209752}}
1+
{"0":{"1":297.2320764418,"2":99.3169152025,"3":0.1930209752,"4":0.1930209752,"5":0.1930209752,"6":0.1930209752,"7":0.1930209752,"8":0.1930209752,"9":0.1930209752,"10":0.1930209752}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"0":{"0":0.1012347369,"1":0.0761357385,"2":0.8226295245},"1":{"0":0.1010235873,"1":0.0779591956,"2":0.8210172171},"2":{"0":0.0994416662,"1":0.0916204305,"2":0.8089379033},"3":{"0":0.0887636744,"1":0.1838339774,"2":0.7274023482},"4":{"0":0.0474476951,"1":0.5411997046,"2":0.4113526004},"5":{"0":0.0087175609,"1":0.8962651575,"2":0.0950172816},"6":{"0":0.0010510094,"1":0.9857832857,"2":0.0131657049},"7":{"0":0.0037712798,"1":0.9949611562,"2":0.0012675641},"8":{"0":0.0098830598,"1":0.9901169402,"2":0.0},"9":{"0":0.0189903523,"1":0.9810096477,"2":0.0},"10":{"0":0.0316610363,"1":0.9683389637,"2":0.0},"11":{"0":0.0486184937,"1":0.9513815063,"2":0.0},"12":{"0":0.070690848,"1":0.929309152,"2":0.0},"13":{"0":0.0987468127,"1":0.9012531873,"2":0.0},"14":{"0":0.1336502636,"1":0.8663497364,"2":0.0},"15":{"0":0.1761934011,"1":0.8238065989,"2":0.0},"16":{"0":0.2269939584,"1":0.7730060416,"2":0.0},"17":{"0":0.2863470819,"1":0.7136529181,"2":0.0},"18":{"0":0.3540301731,"1":0.6459659981,"2":0.0000038288},"19":{"0":0.4290746918,"1":0.5708935987,"2":0.0000317095},"20":{"0":0.5095924913,"1":0.4903292057,"2":0.000078303},"21":{"0":0.5927003213,"1":0.4071615954,"2":0.0001380833},"22":{"0":0.6746779849,"1":0.3251164016,"2":0.0002056135},"23":{"0":0.7514333455,"1":0.2482910397,"2":0.0002756149},"24":{"0":0.8192174853,"1":0.1804393879,"2":0.0003431268},"25":{"0":0.875377344,"1":0.1242187716,"2":0.0004038844},"26":{"0":0.9188519755,"1":0.0806931319,"2":0.0004548926},"27":{"0":0.9502096756,"1":0.0492958216,"2":0.0004945028},"28":{"0":0.9712444548,"1":0.0282325552,"2":0.00052299},"29":{"0":0.9843478389,"1":0.0151103201,"2":0.000541841},"30":{"0":0.9919161267,"1":0.0075306698,"2":0.0005532035},"31":{"0":0.9959607838,"1":0.0034798433,"2":0.0005593729},"32":{"0":0.9979554044,"1":0.0014823242,"2":0.0005622714},"33":{"0":0.9988599149,"1":0.0005766909,"2":0.0005633941},"34":{"0":0.9992355861,"1":0.0002007286,"2":0.0005636853},"35":{"0":0.9993777604,"1":0.0000584775,"2":0.0005637622},"36":{"0":0.9994265484,"1":0.0000096631,"2":0.0005637886},"37":{"0":0.9994402459,"1":0.0,"2":0.0005597541},"38":{"0":0.9994430456,"1":0.0,"2":0.0005569544},"39":{"0":0.9994437327,"1":0.0,"2":0.0005562673},"40":{"0":0.9994438838,"1":0.0,"2":0.0005561162},"41":{"0":0.9994439131,"1":0.0,"2":0.0005560869},"42":{"0":0.9994439181,"1":0.0,"2":0.0005560819},"43":{"0":0.9994439188,"1":0.0,"2":0.0005560812},"44":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"45":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"46":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"47":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"48":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"49":{"0":0.9994439189,"1":0.0,"2":0.0005560811}}
1+
{"0":{"0":0.1012347369,"1":0.0761357385,"2":0.8226295245},"1":{"0":0.1010235873,"1":0.0779591956,"2":0.8210172171},"2":{"0":0.0994416662,"1":0.0916204305,"2":0.8089379033},"3":{"0":0.0887636744,"1":0.1838339774,"2":0.7274023482},"4":{"0":0.0474476951,"1":0.5411997046,"2":0.4113526004},"5":{"0":0.0087175609,"1":0.8962651575,"2":0.0950172816},"6":{"0":0.0010510094,"1":0.9857832857,"2":0.0131657049},"7":{"0":0.0037712798,"1":0.9949611562,"2":0.0012675641},"8":{"0":0.0098830598,"1":0.9901169402,"2":0.0},"9":{"0":0.0189903523,"1":0.9810096477,"2":0.0},"10":{"0":0.0316610363,"1":0.9683389637,"2":0.0},"11":{"0":0.0486184937,"1":0.9513815063,"2":0.0},"12":{"0":0.070690848,"1":0.929309152,"2":0.0},"13":{"0":0.0987468127,"1":0.9012531873,"2":0.0},"14":{"0":0.1336502636,"1":0.8663497364,"2":0.0},"15":{"0":0.1761934011,"1":0.8238065989,"2":0.0},"16":{"0":0.2269939584,"1":0.7730060416,"2":0.0},"17":{"0":0.2863470819,"1":0.7136529181,"2":0.0},"18":{"0":0.3540301731,"1":0.6459659981,"2":0.0000038288},"19":{"0":0.4290746918,"1":0.5708935987,"2":0.0000317095},"20":{"0":0.5095924913,"1":0.4903292057,"2":0.000078303},"21":{"0":0.5927003213,"1":0.4071615954,"2":0.0001380833},"22":{"0":0.6746779849,"1":0.3251164016,"2":0.0002056135},"23":{"0":0.7514333455,"1":0.2482910397,"2":0.0002756149},"24":{"0":0.8192174853,"1":0.1804393879,"2":0.0003431268},"25":{"0":0.875377344,"1":0.1242187716,"2":0.0004038844},"26":{"0":0.9188519755,"1":0.0806931319,"2":0.0004548926},"27":{"0":0.9502096756,"1":0.0492958216,"2":0.0004945028},"28":{"0":0.9712444548,"1":0.0282325552,"2":0.00052299},"29":{"0":0.9843478389,"1":0.0151103201,"2":0.000541841},"30":{"0":0.9919161267,"1":0.0075306698,"2":0.0005532035},"31":{"0":0.9959607838,"1":0.0034798433,"2":0.0005593729},"32":{"0":0.9979554044,"1":0.0014823242,"2":0.0005622714},"33":{"0":0.9988599149,"1":0.0005766909,"2":0.0005633941},"34":{"0":0.9992355861,"1":0.0002007286,"2":0.0005636853},"35":{"0":0.9993777604,"1":0.0000584775,"2":0.0005637622},"36":{"0":0.9994265484,"1":0.0000096631,"2":0.0005637886},"37":{"0":0.9994402459,"1":0.0,"2":0.0005597541},"38":{"0":0.9994430456,"1":0.0,"2":0.0005569544},"39":{"0":0.9994437327,"1":0.0,"2":0.0005562673},"40":{"0":0.9994438838,"1":0.0,"2":0.0005561162},"41":{"0":0.9994439131,"1":0.0,"2":0.0005560869},"42":{"0":0.9994439181,"1":0.0,"2":0.0005560819},"43":{"0":0.9994439188,"1":0.0,"2":0.0005560812},"44":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"45":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"46":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"47":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"48":{"0":0.9994439189,"1":0.0,"2":0.0005560811},"49":{"0":0.9994439189,"1":0.0,"2":0.0005560811}}

diffpy/nmf_mapping/tests/output/output_1/x_index_vs_y_col_components.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"0":{"1":477.1151575591,"2":181.8950165697,"3":0.5234417462,"4":0.5234417462,"5":0.5234417462,"6":0.5234417462,"7":0.5234417462,"8":0.5234417462,"9":0.5234417462,"10":0.5234417462}}
1+
{"0":{"1":477.1151575591,"2":181.8950165697,"3":0.5234417462,"4":0.5234417462,"5":0.5234417462,"6":0.5234417462,"7":0.5234417462,"8":0.5234417462,"9":0.5234417462,"10":0.5234417462}}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"0":{"0":0.0833641066,"1":0.1035847705,"2":0.8130511229},"1":{"0":0.0832033675,"1":0.1052933866,"2":0.8115032459},"2":{"0":0.0819985332,"1":0.1181004714,"2":0.7999009954},"3":{"0":0.0738387331,"1":0.2048370908,"2":0.7213241761},"4":{"0":0.0418091531,"1":0.5457849786,"2":0.4124058683},"5":{"0":0.0117229038,"1":0.8922342899,"2":0.0960428063},"6":{"0":0.0062914579,"1":0.9807387617,"2":0.0129697804},"7":{"0":0.0094478659,"1":0.9895521985,"2":0.0009999356},"8":{"0":0.0157472415,"1":0.9842527585,"2":0.0},"9":{"0":0.0251902614,"1":0.9748097386,"2":0.0},"10":{"0":0.0383110733,"1":0.9616889267,"2":0.0},"11":{"0":0.0558477803,"1":0.9441522197,"2":0.0},"12":{"0":0.0786353777,"1":0.9213646223,"2":0.0},"13":{"0":0.1075375533,"1":0.8924624467,"2":0.0},"14":{"0":0.143395796,"1":0.856604204,"2":0.0},"15":{"0":0.1869565209,"1":0.8130434791,"2":0.0},"16":{"0":0.2387629405,"1":0.7612370595,"2":0.0},"17":{"0":0.2990046793,"1":0.7009953207,"2":0.0},"18":{"0":0.3673284362,"1":0.6326715638,"2":0.0},"19":{"0":0.4426238536,"1":0.5573542646,"2":0.0000218819},"20":{"0":0.5228655038,"1":0.4770566778,"2":0.0000778185},"21":{"0":0.605104567,"1":0.3947394751,"2":0.0001559579},"22":{"0":0.6856502359,"1":0.3141006976,"2":0.0002490665},"23":{"0":0.7605522499,"1":0.2390988057,"2":0.0003489443},"24":{"0":0.8262912468,"1":0.1732615993,"2":0.0004471539},"25":{"0":0.8804688444,"1":0.1189949496,"2":0.000536206},"26":{"0":0.9222310543,"1":0.0771581706,"2":0.0006107751},"27":{"0":0.9522574732,"1":0.0470736654,"2":0.0006688614},"28":{"0":0.9723545037,"1":0.0269353436,"2":0.0007101528},"29":{"0":0.9848558164,"1":0.0144071384,"2":0.0007370452},"30":{"0":0.9920703172,"1":0.0071767354,"2":0.0007529474},"31":{"0":0.9959243689,"1":0.0033143251,"2":0.000761306},"32":{"0":0.9978246931,"1":0.001410202,"2":0.0007651049},"33":{"0":0.9986864778,"1":0.0005470068,"2":0.0007665154},"34":{"0":0.9990443735,"1":0.0001886853,"2":0.0007669412},"35":{"0":0.9991797847,"1":0.000053113,"2":0.0007671023},"36":{"0":0.9992262515,"1":0.0000065909,"2":0.0007671576},"37":{"0":0.9992366349,"1":0.0,"2":0.0007633651},"38":{"0":0.999238301,"1":0.0,"2":0.000761699},"39":{"0":0.9992387109,"1":0.0,"2":0.0007612891},"40":{"0":0.999238801,"1":0.0,"2":0.000761199},"41":{"0":0.9992388184,"1":0.0,"2":0.0007611816},"42":{"0":0.9992388214,"1":0.0,"2":0.0007611786},"43":{"0":0.9992388218,"1":0.0,"2":0.0007611782},"44":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"45":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"46":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"47":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"48":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"49":{"0":0.9992388219,"1":0.0,"2":0.0007611781}}
1+
{"0":{"0":0.0833641066,"1":0.1035847705,"2":0.8130511229},"1":{"0":0.0832033675,"1":0.1052933866,"2":0.8115032459},"2":{"0":0.0819985332,"1":0.1181004714,"2":0.7999009954},"3":{"0":0.0738387331,"1":0.2048370908,"2":0.7213241761},"4":{"0":0.0418091531,"1":0.5457849786,"2":0.4124058683},"5":{"0":0.0117229038,"1":0.8922342899,"2":0.0960428063},"6":{"0":0.0062914579,"1":0.9807387617,"2":0.0129697804},"7":{"0":0.0094478659,"1":0.9895521985,"2":0.0009999356},"8":{"0":0.0157472415,"1":0.9842527585,"2":0.0},"9":{"0":0.0251902614,"1":0.9748097386,"2":0.0},"10":{"0":0.0383110733,"1":0.9616889267,"2":0.0},"11":{"0":0.0558477803,"1":0.9441522197,"2":0.0},"12":{"0":0.0786353777,"1":0.9213646223,"2":0.0},"13":{"0":0.1075375533,"1":0.8924624467,"2":0.0},"14":{"0":0.143395796,"1":0.856604204,"2":0.0},"15":{"0":0.1869565209,"1":0.8130434791,"2":0.0},"16":{"0":0.2387629405,"1":0.7612370595,"2":0.0},"17":{"0":0.2990046793,"1":0.7009953207,"2":0.0},"18":{"0":0.3673284362,"1":0.6326715638,"2":0.0},"19":{"0":0.4426238536,"1":0.5573542646,"2":0.0000218819},"20":{"0":0.5228655038,"1":0.4770566778,"2":0.0000778185},"21":{"0":0.605104567,"1":0.3947394751,"2":0.0001559579},"22":{"0":0.6856502359,"1":0.3141006976,"2":0.0002490665},"23":{"0":0.7605522499,"1":0.2390988057,"2":0.0003489443},"24":{"0":0.8262912468,"1":0.1732615993,"2":0.0004471539},"25":{"0":0.8804688444,"1":0.1189949496,"2":0.000536206},"26":{"0":0.9222310543,"1":0.0771581706,"2":0.0006107751},"27":{"0":0.9522574732,"1":0.0470736654,"2":0.0006688614},"28":{"0":0.9723545037,"1":0.0269353436,"2":0.0007101528},"29":{"0":0.9848558164,"1":0.0144071384,"2":0.0007370452},"30":{"0":0.9920703172,"1":0.0071767354,"2":0.0007529474},"31":{"0":0.9959243689,"1":0.0033143251,"2":0.000761306},"32":{"0":0.9978246931,"1":0.001410202,"2":0.0007651049},"33":{"0":0.9986864778,"1":0.0005470068,"2":0.0007665154},"34":{"0":0.9990443735,"1":0.0001886853,"2":0.0007669412},"35":{"0":0.9991797847,"1":0.000053113,"2":0.0007671023},"36":{"0":0.9992262515,"1":0.0000065909,"2":0.0007671576},"37":{"0":0.9992366349,"1":0.0,"2":0.0007633651},"38":{"0":0.999238301,"1":0.0,"2":0.000761699},"39":{"0":0.9992387109,"1":0.0,"2":0.0007612891},"40":{"0":0.999238801,"1":0.0,"2":0.000761199},"41":{"0":0.9992388184,"1":0.0,"2":0.0007611816},"42":{"0":0.9992388214,"1":0.0,"2":0.0007611786},"43":{"0":0.9992388218,"1":0.0,"2":0.0007611782},"44":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"45":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"46":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"47":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"48":{"0":0.9992388219,"1":0.0,"2":0.0007611781},"49":{"0":0.9992388219,"1":0.0,"2":0.0007611781}}

diffpy/nmf_mapping/tests/output/output_2/x_index_vs_y_col_components.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"0":{"1":329.0880682792,"2":115.1656743197,"3":0.259035152,"4":0.259035152,"5":0.259035152,"6":0.259035152,"7":0.259035152,"8":0.259035152,"9":0.259035152,"10":0.259035152}}
1+
{"0":{"1":329.0880682792,"2":115.1656743197,"3":0.259035152,"4":0.259035152,"5":0.259035152,"6":0.259035152,"7":0.259035152,"8":0.259035152,"9":0.259035152,"10":0.259035152}}

0 commit comments

Comments
 (0)