Fix a bunch of code smells and a Py<3.8 error #179
30 errors, 291 pass in 23m 4s
Annotations
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_Analysis
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_Analysis.py:17: in <module>
from Stoner import Data
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_Core
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_Core.py:19: in <module>
from Stoner import Data, __home__
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_FileFormats
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_FileFormats.py:14: in <module>
from Stoner import Data, __homepath__, __datapath__, ImageFile
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_HDF5
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_HDF5.py:7: in <module>
import Stoner
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_Util
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_Util.py:7: in <module>
import Stoner.Util as SU
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_Zip
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_Zip.py:8: in <module>
import Stoner
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.test_doc_samples
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/test_doc_samples.py:4: in <module>
from Stoner.compat import listdir_recursive
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_core
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_core.py:8: in <module>
from Stoner.Image import ImageArray, ImageFile
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_folder
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_folder.py:5: in <module>
from Stoner.Image import ImageArray, ImageFolder
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_kerr
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_kerr.py:8: in <module>
from Stoner.Image.kerr import KerrArray, KerrImageFile, KerrStack
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_listfuncs
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_listfuncs.py:8: in <module>
from Stoner.Image import ImageArray, ImageFile
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_stack
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_stack.py:8: in <module>
from Stoner.Image import ImageFile, ImageFolder, ImageStack
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.Image.test_wdigets
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/Image/test_wdigets.py:15: in <module>
import Stoner
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.analysis.test_columns
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/analysis/test_columns.py:15: in <module>
from Stoner import Data
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.analysis.test_filtering
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/analysis/test_filtering.py:6: in <module>
from Stoner import Data
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.analysis.fitting.test_mixins
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/analysis/fitting/test_mixins.py:20: in <module>
from Stoner import Data
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.core.test_exceptions
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/core/test_exceptions.py:4: in <module>
from Stoner.core.exceptions import assertion
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.core.test_interface
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/core/test_interface.py:10: in <module>
from Stoner import Data, __home__
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.core.test_operators
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/core/test_operators.py:9: in <module>
from Stoner import Data, __home__
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.core.test_setas
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/core/test_setas.py:19: in <module>
from Stoner import Data, __home__
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.core.test_typeHintedDict
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/core/test_typeHintedDict.py:11: in <module>
from Stoner.core.base import typeHintedDict
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.folders.test_Folders
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/folders/test_Folders.py:19: in <module>
from Stoner.compat import Hyperspy_ok
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.folders.test_each
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/folders/test_each.py:13: in <module>
from Stoner import DataFolder
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.folders.test_metadata
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/folders/test_metadata.py:12: in <module>
from Stoner.compat import *
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'
github-actions / Unit Test Results
All 4 runs with error: tests.Stoner.folders.test_mixins
artifacts/Unit Test Results (Python 3.10)/pytest.xml
artifacts/Unit Test Results (Python 3.7)/pytest.xml
artifacts/Unit Test Results (Python 3.8)/pytest.xml
artifacts/Unit Test Results (Python 3.9)/pytest.xml
Raw output
tests/Stoner/folders/test_mixins.py:17: in <module>
from Stoner import Data, __home__, Options
Stoner/__init__.py:28: in <module>
from . import core, analysis, formats, plot, tools, Image
Stoner/core/__init__.py:24: in <module>
from .base import regexpDict, typeHintedDict, metadataObject, string_to_type
Stoner/core/base.py:35: in <module>
from ..compat import string_types, int_types, _pattern_type
Stoner/compat.py:43: in <module>
modules["sre_parse"] = re._parser
E AttributeError: module 're' has no attribute '_parser'