Skip to content

Commit d3f0626

Browse files
committed
removed stay as dependency, it's better this way :'(
1 parent 5943d97 commit d3f0626

File tree

4 files changed

+48
-16
lines changed

4 files changed

+48
-16
lines changed

CODE fuzzy.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,9 +1415,9 @@
14151415
"name": "python",
14161416
"nbconvert_exporter": "python",
14171417
"pygments_lexer": "ipython3",
1418-
"version": "3.7.5"
1418+
"version": "3.8.3"
14191419
}
14201420
},
14211421
"nbformat": 4,
1422-
"nbformat_minor": 1
1422+
"nbformat_minor": 4
14231423
}

docs/Showcase.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@
377377
"name": "python",
378378
"nbconvert_exporter": "python",
379379
"pygments_lexer": "ipython3",
380-
"version": "3.7.0"
380+
"version": "3.8.3"
381381
}
382382
},
383383
"nbformat": 4,
384-
"nbformat_minor": 1
384+
"nbformat_minor": 4
385385
}

setup.py

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,34 @@
44
src = os.path.join(here, "src/fuzzylogic")
55
sys.path.append(src)
66

7-
from stay import Decoder
8-
from setuptools import setup, find_packages
7+
from setuptools import find_packages
8+
from setuptools import setup
99

10-
load = Decoder()
11-
12-
with open("META.stay") as f:
13-
for meta in load(f):
14-
pass
10+
meta={
11+
"name":"fuzzylogic",
12+
"description":"Fuzzy Logic for Python 3",
13+
"license":"MIT",
14+
"url":"https://github.com/amogorkon/fuzzylogic",
15+
"version":"0.1.2.post2",
16+
"author":"Anselm Kiefner",
17+
"author_email":"fuzzylogic-pypi@anselm.kiefner.de",
18+
"python_requires":">3.6",
19+
"keywords":["fuzzy logic",],
20+
"classifiers":[
21+
"Development Status :: 4 - Beta"
22+
"Intended Audience :: Developers"
23+
"Intended Audience :: Education"
24+
"Intended Audience :: Manufacturing"
25+
"Intended Audience :: Science/Research"
26+
"Natural Language :: English"
27+
"License :: OSI Approved :: MIT License"
28+
"Operating System :: OS Independent"
29+
"Programming Language :: Python :: 3 :: Only"
30+
"Topic :: Scientific/Engineering :: Artificial Intelligence"
31+
"Topic :: Scientific/Engineering :: Mathematics"
32+
"Topic :: Scientific/Engineering :: Information Analysis"
33+
]
34+
}
1535

1636
with open("README.md") as f:
1737
LONG_DESCRIPTION = f.read()

src/fuzzylogic/classes.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@
66
"""
77

88
import matplotlib.pyplot as plt
9-
from numpy import arange, fromiter, array_equal, less_equal, greater_equal, less, greater
109
import numpy as np
11-
from logging import warn
1210
import pickle
1311

14-
from .functions import inv, normalize
15-
from .combinators import MAX, MIN, product, bounded_sum, simple_disjoint_sum
12+
from logging import warn
13+
from numpy import arange
14+
from numpy import array_equal
15+
from numpy import fromiter
16+
from numpy import greater
17+
from numpy import greater_equal
18+
from numpy import less
19+
from numpy import less_equal
20+
21+
from .combinators import MAX
22+
from .combinators import MIN
23+
from .combinators import bounded_sum
24+
from .combinators import product
25+
from .combinators import simple_disjoint_sum
26+
from .functions import inv
27+
from .functions import normalize
1628

1729
class FuzzyWarning(UserWarning):
1830
"""Extra Exception so that user code can filter exceptions specific to this lib."""
@@ -193,7 +205,7 @@ def __call__(self, x):
193205

194206
def __invert__(self):
195207
"""Return a new set with modified function."""
196-
return Set(inv(self.func))
208+
return Set(inv(self.func)),
197209

198210
def __neg__(self):
199211
return Set(inv(self.func))

0 commit comments

Comments
 (0)