Skip to content

Commit

Permalink
Further code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
gb119 committed Jan 2, 2024
1 parent ee19dbb commit b5a833d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 455 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run-tests-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Fix git config
run: git config --global --add safe.directory /github/workspace
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
Expand Down
2 changes: 1 addition & 1 deletion Stoner/core/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class typeHintedDict(regexpDict):
__regexTimestamp: RegExp = re.compile(r"Timestamp")
__regexEvaluatable: RegExp = re.compile(r"^(Cluster||\d+D Array|List)")

__types: Dict[str, type] = dict(
__types: Dict[str, type] = dict( # pylint: disable=use-before-assignment
[ # Key order does matter here!
("Boolean", bool),
("I32", int),
Expand Down
2 changes: 1 addition & 1 deletion Stoner/formats/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def load_tdms(new_data, filename=None, *args, **kargs):
new_data.column_headers = tmp.column_headers
new_data.metadata.update(grp.properties)
else:
tmp = DataFile(grp.as_dataframe())
tmp = make_Data(grp.as_dataframe())
new_data.data = tmp.data
new_data.column_headers = tmp.column_headers
except (IOError, ValueError, TypeError, StonerLoadError) as err:
Expand Down
5 changes: 2 additions & 3 deletions Stoner/plot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
:py:mod:`Stoner.plot.util` module provides
some handy utility functions.
"""

from .core import PlotMixin

__all__ = ["PlotMixin", "formats", "utils"]
from .core import PlotMixin
from . import formats, utils
Loading

0 comments on commit b5a833d

Please sign in to comment.