mapFolding 0.3.10__tar.gz → 0.3.12__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.
- {mapfolding-0.3.10 → mapfolding-0.3.12}/PKG-INFO +3 -1
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/__init__.py +10 -0
- mapfolding-0.3.12/mapFolding/someAssemblyRequired/__init__.py +1 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/someAssemblyRequired/makeJob.py +5 -5
- mapfolding-0.3.12/mapFolding/someAssemblyRequired/synthesizeNumba.py +637 -0
- mapfolding-0.3.12/mapFolding/someAssemblyRequired/synthesizeNumbaHardcoding.py +188 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/syntheticModules/numba_countInitialize.py +10 -6
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/syntheticModules/numba_countParallel.py +14 -8
- mapfolding-0.3.12/mapFolding/syntheticModules/numba_countSequential.py +67 -0
- mapfolding-0.3.12/mapFolding/syntheticModules/numba_doTheNeedful.py +20 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/theDao.py +61 -45
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/theSSOT.py +32 -8
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/theSSOTnumba.py +2 -1
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/PKG-INFO +3 -1
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/SOURCES.txt +2 -2
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/requires.txt +2 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/pyproject.toml +5 -3
- mapfolding-0.3.10/mapFolding/someAssemblyRequired/__init__.py +0 -2
- mapfolding-0.3.10/mapFolding/someAssemblyRequired/synthesizeJobNumba.py +0 -383
- mapfolding-0.3.10/mapFolding/someAssemblyRequired/synthesizeModulesNumba.py +0 -533
- mapfolding-0.3.10/mapFolding/syntheticModules/numba_countSequential.py +0 -62
- mapfolding-0.3.10/mapFolding/syntheticModules/numba_doTheNeedful.py +0 -30
- {mapfolding-0.3.10 → mapfolding-0.3.12}/LICENSE +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/README.md +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/basecamp.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/beDRY.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/oeis.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/flattened.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/hunterNumba.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/irvineJavaPort.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/jax.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/lunnan.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/lunnanNumpy.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/lunnanWhile.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/rotatedEntryPoint.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/reference/total_countPlus1vsPlusN.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/someAssemblyRequired/getLLVMforNoReason.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding/someAssemblyRequired/synthesizeModuleJAX.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/dependency_links.txt +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/entry_points.txt +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/mapFolding.egg-info/top_level.txt +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/setup.cfg +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/__init__.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/conftest.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/conftest_tmpRegistry.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/conftest_uniformTests.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/test_oeis.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/test_other.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/test_tasks.py +0 -0
- {mapfolding-0.3.10 → mapfolding-0.3.12}/tests/test_types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: mapFolding
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
4
4
|
Summary: Count distinct ways to fold a map (or a strip of stamps)
|
|
5
5
|
Author-email: Hunter Hogan <HunterHogan@pm.me>
|
|
6
6
|
License: CC-BY-NC-4.0
|
|
@@ -26,6 +26,7 @@ Requires-Dist: numba
|
|
|
26
26
|
Requires-Dist: numpy
|
|
27
27
|
Requires-Dist: Z0Z_tools
|
|
28
28
|
Provides-Extra: testing
|
|
29
|
+
Requires-Dist: autoflake; extra == "testing"
|
|
29
30
|
Requires-Dist: more_itertools; extra == "testing"
|
|
30
31
|
Requires-Dist: mypy; extra == "testing"
|
|
31
32
|
Requires-Dist: pytest-cov; extra == "testing"
|
|
@@ -35,6 +36,7 @@ Requires-Dist: pytest-xdist; extra == "testing"
|
|
|
35
36
|
Requires-Dist: pytest; extra == "testing"
|
|
36
37
|
Requires-Dist: python_minifier; extra == "testing"
|
|
37
38
|
Requires-Dist: types-setuptools; extra == "testing"
|
|
39
|
+
Requires-Dist: updateCitation; extra == "testing"
|
|
38
40
|
|
|
39
41
|
# Algorithm(s) for counting distinct ways to fold a map (or a strip of stamps)
|
|
40
42
|
|
|
@@ -26,6 +26,11 @@ from mapFolding.theSSOT import (
|
|
|
26
26
|
getPathJobRootDEFAULT,
|
|
27
27
|
getPathSyntheticModules,
|
|
28
28
|
moduleOfSyntheticModules,
|
|
29
|
+
Z0Z_getDatatypeModuleScalar,
|
|
30
|
+
Z0Z_getDecoratorCallable,
|
|
31
|
+
Z0Z_setDatatypeModuleScalar,
|
|
32
|
+
Z0Z_setDecoratorCallable,
|
|
33
|
+
Z0Z_identifierCountFolds,
|
|
29
34
|
)
|
|
30
35
|
|
|
31
36
|
# Parameters for the prima donna
|
|
@@ -38,6 +43,11 @@ from mapFolding.theSSOT import (
|
|
|
38
43
|
parametersNumbaSuperJitParallel,
|
|
39
44
|
)
|
|
40
45
|
|
|
46
|
+
# Coping
|
|
47
|
+
from mapFolding.theSSOT import (
|
|
48
|
+
FREAKOUT,
|
|
49
|
+
)
|
|
50
|
+
|
|
41
51
|
from mapFolding.beDRY import (
|
|
42
52
|
getFilenameFoldsTotal,
|
|
43
53
|
getPathFilenameFoldsTotal,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .makeJob import makeStateJob
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from mapFolding import getPathFilenameFoldsTotal, computationState, outfitCountFolds, getAlgorithmSource
|
|
2
|
-
from
|
|
2
|
+
from types import ModuleType
|
|
3
|
+
from typing import Any, Literal, Optional, Sequence, overload
|
|
3
4
|
import pathlib
|
|
4
5
|
import pickle
|
|
5
6
|
|
|
@@ -13,7 +14,7 @@ def makeStateJob(listDimensions: Sequence[int], *, writeJob: Literal[False]
|
|
|
13
14
|
, **keywordArguments: Optional[str]) -> computationState:
|
|
14
15
|
...
|
|
15
16
|
|
|
16
|
-
def makeStateJob(listDimensions: Sequence[int], *, writeJob: bool = True, **keywordArguments: Optional[
|
|
17
|
+
def makeStateJob(listDimensions: Sequence[int], *, writeJob: bool = True, **keywordArguments: Optional[Any]) -> computationState | pathlib.Path:
|
|
17
18
|
"""
|
|
18
19
|
Creates a computation state job for map folding calculations and optionally saves it to disk.
|
|
19
20
|
|
|
@@ -42,10 +43,9 @@ def makeStateJob(listDimensions: Sequence[int], *, writeJob: bool = True, **keyw
|
|
|
42
43
|
when writeJob is True. The file is saved in a directory structure based on the map shape.
|
|
43
44
|
"""
|
|
44
45
|
|
|
45
|
-
stateUniversal: computationState = outfitCountFolds(listDimensions,
|
|
46
|
+
stateUniversal: computationState = outfitCountFolds(listDimensions, **keywordArguments)
|
|
46
47
|
|
|
47
|
-
|
|
48
|
-
moduleSource = getAlgorithmSource()
|
|
48
|
+
moduleSource: ModuleType = getAlgorithmSource()
|
|
49
49
|
moduleSource.countInitialize(stateUniversal['connectionGraph'], stateUniversal['gapsWhere'], stateUniversal['my'], stateUniversal['track'])
|
|
50
50
|
|
|
51
51
|
if not writeJob:
|