Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
add neural network primitives to library.wom
Browse files Browse the repository at this point in the history
  • Loading branch information
rjdbcm committed Oct 31, 2021
1 parent 141fb26 commit 7f45730
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Aspidites/parser/reserved.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
exponp = Literal("**")
factop = Literal("!")
bigf = oneOf("F ƒ").setParseAction(replaceWith('F()'))
bitwiseop = Regex(r"<<|>>|&|\||~|^").setName("bitwise operator")
bitwiseop = Regex(r"<<|>>|&|\||~|\^").setName("bitwise operator")
andop = Literal('&&').setParseAction(replaceWith(' and '))
orop = Literal('||').setParseAction(replaceWith(' or '))
comparisonop = andop | orop | Regex(">=|<=|!=|>|<|==").setName("operator")
Expand Down
1 change: 1 addition & 0 deletions Aspidites/woma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from .gcutils import get_all
from .fileutils import mkdir_p, atomic_save, iter_find_files, copytree
from .pickleutils import pickle_loads
from .guiutils import *
from .mathutils import clamp, ceil, floor
from contextlib import contextmanager
Expand Down
2 changes: 1 addition & 1 deletion Aspidites/woma/pickleutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def find_class(self, module, name):
(module, name))


def restricted_loads(s):
def pickle_loads(s):
"""Helper function analogous to pickle.loads()."""
return RestrictedUnpickler(io.BytesIO(s)).load()
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
str(Path('Aspidites/__main__.py')),
str(Path('Aspidites/compiler.py')),
str(Path('Aspidites/woma/fileutils.py')),
str(Path('Aspidites/woma/setutils.py')),
str(Path('Aspidites/woma/gcutils.py')),
str(Path('Aspidites/woma/guiutils.py')),
str(Path('Aspidites/woma/mathutils.py'))
Expand Down

0 comments on commit 7f45730

Please sign in to comment.