idiff 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- idiff-0.0.1/LICENCE +19 -0
- idiff-0.0.1/PKG-INFO +35 -0
- idiff-0.0.1/README.md +19 -0
- idiff-0.0.1/pyproject.toml +6 -0
- idiff-0.0.1/setup.cfg +4 -0
- idiff-0.0.1/setup.py +35 -0
- idiff-0.0.1/src/idiff/__init__.py +14 -0
- idiff-0.0.1/src/idiff/simple.py +10 -0
- idiff-0.0.1/src/idiff.egg-info/PKG-INFO +35 -0
- idiff-0.0.1/src/idiff.egg-info/SOURCES.txt +10 -0
- idiff-0.0.1/src/idiff.egg-info/dependency_links.txt +1 -0
- idiff-0.0.1/src/idiff.egg-info/top_level.txt +1 -0
idiff-0.0.1/LICENCE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2018 The Python Packaging Authority
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
idiff-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: idiff
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Improve 2D powder diffraction patterns
|
|
5
|
+
Home-page: https://github.com/mirekslouf/idiff/
|
|
6
|
+
Author: Mirek Slouf
|
|
7
|
+
Author-email: mirek.slouf@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Documentation, https://mirekslouf.github.io/idiff/
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENCE
|
|
16
|
+
|
|
17
|
+
IDIFF :: improving 2D diffraction patterns
|
|
18
|
+
------------------------------------------
|
|
19
|
+
|
|
20
|
+
* IDIFF improves 2D diffractograms by removing background and noise.
|
|
21
|
+
|
|
22
|
+
Quick start
|
|
23
|
+
-----------
|
|
24
|
+
|
|
25
|
+
* TODO
|
|
26
|
+
|
|
27
|
+
Documentation, help and examples
|
|
28
|
+
--------------------------------
|
|
29
|
+
|
|
30
|
+
* TODO
|
|
31
|
+
|
|
32
|
+
Versions of EDIFF
|
|
33
|
+
-----------------
|
|
34
|
+
|
|
35
|
+
* Version 0.0.1 = just draft
|
idiff-0.0.1/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
IDIFF :: improving 2D diffraction patterns
|
|
2
|
+
------------------------------------------
|
|
3
|
+
|
|
4
|
+
* IDIFF improves 2D diffractograms by removing background and noise.
|
|
5
|
+
|
|
6
|
+
Quick start
|
|
7
|
+
-----------
|
|
8
|
+
|
|
9
|
+
* TODO
|
|
10
|
+
|
|
11
|
+
Documentation, help and examples
|
|
12
|
+
--------------------------------
|
|
13
|
+
|
|
14
|
+
* TODO
|
|
15
|
+
|
|
16
|
+
Versions of EDIFF
|
|
17
|
+
-----------------
|
|
18
|
+
|
|
19
|
+
* Version 0.0.1 = just draft
|
idiff-0.0.1/setup.cfg
ADDED
idiff-0.0.1/setup.py
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import setuptools
|
|
2
|
+
|
|
3
|
+
def get_version():
|
|
4
|
+
with(open("src/idiff/__init__.py", "r")) as fh:
|
|
5
|
+
for line in fh:
|
|
6
|
+
if line.startswith("__version__"):
|
|
7
|
+
delim = '"' if '"' in line else "'"
|
|
8
|
+
return line.split(delim)[1]
|
|
9
|
+
else:
|
|
10
|
+
raise RuntimeError("Unable to find version string.")
|
|
11
|
+
|
|
12
|
+
def get_long_description():
|
|
13
|
+
with open("README.md", "r") as fh: description = fh.read()
|
|
14
|
+
return(description)
|
|
15
|
+
|
|
16
|
+
setuptools.setup(
|
|
17
|
+
name="idiff",
|
|
18
|
+
version=get_version(),
|
|
19
|
+
author="Mirek Slouf",
|
|
20
|
+
author_email="mirek.slouf@gmail.com",
|
|
21
|
+
description="Improve 2D powder diffraction patterns",
|
|
22
|
+
long_description=get_long_description(),
|
|
23
|
+
long_description_content_type="text/markdown",
|
|
24
|
+
url="https://github.com/mirekslouf/idiff/",
|
|
25
|
+
project_urls={
|
|
26
|
+
"Documentation": "https://mirekslouf.github.io/idiff/"},
|
|
27
|
+
classifiers=[
|
|
28
|
+
"Programming Language :: Python :: 3",
|
|
29
|
+
"License :: OSI Approved :: MIT License",
|
|
30
|
+
"Operating System :: OS Independent"],
|
|
31
|
+
license='MIT',
|
|
32
|
+
package_dir={"":"src"},
|
|
33
|
+
packages=setuptools.find_packages(where="src"),
|
|
34
|
+
python_requires=">=3.6",
|
|
35
|
+
include_package_data=True)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'''
|
|
2
|
+
Package: IDIFF
|
|
3
|
+
--------------
|
|
4
|
+
Improve DIFFractograms = remove background + noise from 2D diffraction patterns.
|
|
5
|
+
|
|
6
|
+
* Input:
|
|
7
|
+
- 2D numpy array representing original/raw 2D-diffraction pattern.
|
|
8
|
+
- The original patterns usually exhibit non-zero background + random noise.
|
|
9
|
+
* Output:
|
|
10
|
+
- 2D numpy array representing clean/de-noised 2D-diffraction pattern.
|
|
11
|
+
- The ideal clean diffraction pattern has no background intensity and noise.
|
|
12
|
+
'''
|
|
13
|
+
|
|
14
|
+
__version__ = "0.0.1"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: idiff
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Improve 2D powder diffraction patterns
|
|
5
|
+
Home-page: https://github.com/mirekslouf/idiff/
|
|
6
|
+
Author: Mirek Slouf
|
|
7
|
+
Author-email: mirek.slouf@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Documentation, https://mirekslouf.github.io/idiff/
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Requires-Python: >=3.6
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENCE
|
|
16
|
+
|
|
17
|
+
IDIFF :: improving 2D diffraction patterns
|
|
18
|
+
------------------------------------------
|
|
19
|
+
|
|
20
|
+
* IDIFF improves 2D diffractograms by removing background and noise.
|
|
21
|
+
|
|
22
|
+
Quick start
|
|
23
|
+
-----------
|
|
24
|
+
|
|
25
|
+
* TODO
|
|
26
|
+
|
|
27
|
+
Documentation, help and examples
|
|
28
|
+
--------------------------------
|
|
29
|
+
|
|
30
|
+
* TODO
|
|
31
|
+
|
|
32
|
+
Versions of EDIFF
|
|
33
|
+
-----------------
|
|
34
|
+
|
|
35
|
+
* Version 0.0.1 = just draft
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
idiff
|