diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 083db35ca..6b3e80e40 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.1 # Replace by any tag/version: https://github.com/psf/black/tags + rev: 24.1.1 # Replace by any tag/version: https://github.com/psf/black/tags hooks: - id: black language_version: python3 # Should be a command that runs python3.6+ diff --git a/WrightTools/__init__.py b/WrightTools/__init__.py index 06a2c1a62..cc9828e56 100644 --- a/WrightTools/__init__.py +++ b/WrightTools/__init__.py @@ -1,4 +1,5 @@ """WrightTools init.""" + # flake8: noqa diff --git a/WrightTools/__version__.py b/WrightTools/__version__.py index 5f7bc51a1..c6b87937c 100644 --- a/WrightTools/__version__.py +++ b/WrightTools/__version__.py @@ -1,6 +1,5 @@ """Define WrightTools version.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/__wt5_version__.py b/WrightTools/__wt5_version__.py index fe9ac8dd3..37847a68c 100644 --- a/WrightTools/__wt5_version__.py +++ b/WrightTools/__wt5_version__.py @@ -1,6 +1,5 @@ """Define wt5 version.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/_close.py b/WrightTools/_close.py index 5f60da747..b34d59b22 100644 --- a/WrightTools/_close.py +++ b/WrightTools/_close.py @@ -1,6 +1,5 @@ """Function to close all open wt5 files.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/WrightTools/_dataset.py b/WrightTools/_dataset.py index cbaa68135..9eae09ae0 100644 --- a/WrightTools/_dataset.py +++ b/WrightTools/_dataset.py @@ -1,6 +1,5 @@ """Dataset base class.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/_group.py b/WrightTools/_group.py index 271834a88..94de63c66 100644 --- a/WrightTools/_group.py +++ b/WrightTools/_group.py @@ -1,6 +1,5 @@ """Group base class.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/_open.py b/WrightTools/_open.py index 0c2360b92..85c805167 100644 --- a/WrightTools/_open.py +++ b/WrightTools/_open.py @@ -1,6 +1,5 @@ """Generic open method for wt5 files.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/WrightTools/artists/__init__.py b/WrightTools/artists/__init__.py index 488d113b3..0c76a418e 100644 --- a/WrightTools/artists/__init__.py +++ b/WrightTools/artists/__init__.py @@ -1,4 +1,5 @@ """Artists.""" + # flake8: noqa diff --git a/WrightTools/artists/_base.py b/WrightTools/artists/_base.py index ce20b4371..7d880b82f 100644 --- a/WrightTools/artists/_base.py +++ b/WrightTools/artists/_base.py @@ -1,6 +1,5 @@ """Base tools for visualizing data.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/artists/_colors.py b/WrightTools/artists/_colors.py index cc852013a..e371af3e1 100644 --- a/WrightTools/artists/_colors.py +++ b/WrightTools/artists/_colors.py @@ -1,6 +1,5 @@ """Colormaps.""" - # --- import -------------------------------------------------------------------------------------- import copy diff --git a/WrightTools/artists/_helpers.py b/WrightTools/artists/_helpers.py index c45a4f097..3ead0c53d 100644 --- a/WrightTools/artists/_helpers.py +++ b/WrightTools/artists/_helpers.py @@ -1,6 +1,5 @@ """Functions to help with plotting.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/artists/_quick.py b/WrightTools/artists/_quick.py index 8420f77eb..a08abf700 100644 --- a/WrightTools/artists/_quick.py +++ b/WrightTools/artists/_quick.py @@ -1,6 +1,5 @@ """Quick plotting.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/artists/_turbo.py b/WrightTools/artists/_turbo.py index 7ec18aed8..09fb2bff0 100644 --- a/WrightTools/artists/_turbo.py +++ b/WrightTools/artists/_turbo.py @@ -1,6 +1,5 @@ """Define turbo colormap.""" - # Copyright 2019 Google LLC. # SPDX-License-Identifier: Apache-2.0 diff --git a/WrightTools/collection/__init__.py b/WrightTools/collection/__init__.py index 98069cce2..f3b82369b 100644 --- a/WrightTools/collection/__init__.py +++ b/WrightTools/collection/__init__.py @@ -1,4 +1,5 @@ """Collection class and associated.""" + # flake8: noqa diff --git a/WrightTools/collection/_cary.py b/WrightTools/collection/_cary.py index 67d231827..06a7a18c3 100644 --- a/WrightTools/collection/_cary.py +++ b/WrightTools/collection/_cary.py @@ -1,6 +1,5 @@ """Cary.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/collection/_collection.py b/WrightTools/collection/_collection.py index 7b19866ae..9f9d51991 100644 --- a/WrightTools/collection/_collection.py +++ b/WrightTools/collection/_collection.py @@ -1,6 +1,5 @@ """Collection.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/collection/_directory.py b/WrightTools/collection/_directory.py index 9f269b6d7..ebef2a4b2 100644 --- a/WrightTools/collection/_directory.py +++ b/WrightTools/collection/_directory.py @@ -1,6 +1,5 @@ """Cary.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/__init__.py b/WrightTools/data/__init__.py index 214a1704c..cc30bd67a 100644 --- a/WrightTools/data/__init__.py +++ b/WrightTools/data/__init__.py @@ -1,4 +1,5 @@ """Data class and associated.""" + # flake8: noqa diff --git a/WrightTools/data/_aramis.py b/WrightTools/data/_aramis.py index 82f4cfc5e..bb825c0d2 100644 --- a/WrightTools/data/_aramis.py +++ b/WrightTools/data/_aramis.py @@ -1,6 +1,5 @@ """Aramis.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_axis.py b/WrightTools/data/_axis.py index 2b630c2e1..3beb687a6 100644 --- a/WrightTools/data/_axis.py +++ b/WrightTools/data/_axis.py @@ -1,6 +1,5 @@ """Axis class and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_brunold.py b/WrightTools/data/_brunold.py index 7942ae669..048eb395b 100644 --- a/WrightTools/data/_brunold.py +++ b/WrightTools/data/_brunold.py @@ -1,6 +1,5 @@ """Brunold.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_channel.py b/WrightTools/data/_channel.py index c495c487c..b820dea06 100644 --- a/WrightTools/data/_channel.py +++ b/WrightTools/data/_channel.py @@ -1,6 +1,5 @@ """Channel class and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_colors.py b/WrightTools/data/_colors.py index 86b9bb2b2..d0ba1cd48 100644 --- a/WrightTools/data/_colors.py +++ b/WrightTools/data/_colors.py @@ -1,6 +1,5 @@ """COLORS.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_constant.py b/WrightTools/data/_constant.py index 5084a533a..63ab3129b 100644 --- a/WrightTools/data/_constant.py +++ b/WrightTools/data/_constant.py @@ -1,6 +1,5 @@ """Constant class and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_data.py b/WrightTools/data/_data.py index 86d496d31..cdec37c4f 100644 --- a/WrightTools/data/_data.py +++ b/WrightTools/data/_data.py @@ -1,6 +1,5 @@ """Central data class and associated.""" - # --- import -------------------------------------------------------------------------------------- from __future__ import annotations diff --git a/WrightTools/data/_jasco.py b/WrightTools/data/_jasco.py index 7d76b1981..c652f5ba0 100644 --- a/WrightTools/data/_jasco.py +++ b/WrightTools/data/_jasco.py @@ -1,6 +1,5 @@ """JASCO.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_join.py b/WrightTools/data/_join.py index 5f7275e18..dc0a7fc55 100644 --- a/WrightTools/data/_join.py +++ b/WrightTools/data/_join.py @@ -1,6 +1,5 @@ """Join multiple data objects together.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_kent.py b/WrightTools/data/_kent.py index c17c25d24..38435b384 100644 --- a/WrightTools/data/_kent.py +++ b/WrightTools/data/_kent.py @@ -1,6 +1,5 @@ """Kent Meyer.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_ocean_optics.py b/WrightTools/data/_ocean_optics.py index 02f670bea..6541c555c 100644 --- a/WrightTools/data/_ocean_optics.py +++ b/WrightTools/data/_ocean_optics.py @@ -1,6 +1,5 @@ """Ocean Optics.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_pycmds.py b/WrightTools/data/_pycmds.py index 9e69d9df4..3f13fdfa1 100644 --- a/WrightTools/data/_pycmds.py +++ b/WrightTools/data/_pycmds.py @@ -1,6 +1,5 @@ """PyCMDS.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_shimadzu.py b/WrightTools/data/_shimadzu.py index 6a0e3421f..00dbdd7e4 100644 --- a/WrightTools/data/_shimadzu.py +++ b/WrightTools/data/_shimadzu.py @@ -1,6 +1,5 @@ """Shimadzu.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_solis.py b/WrightTools/data/_solis.py index 207c8f345..c9ce5ce21 100644 --- a/WrightTools/data/_solis.py +++ b/WrightTools/data/_solis.py @@ -1,6 +1,5 @@ """Andor.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_spcm.py b/WrightTools/data/_spcm.py index 42132bf81..ab9737fbf 100644 --- a/WrightTools/data/_spcm.py +++ b/WrightTools/data/_spcm.py @@ -1,6 +1,5 @@ """SPCM.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_tensor27.py b/WrightTools/data/_tensor27.py index 1cb2cb916..c030e6e30 100644 --- a/WrightTools/data/_tensor27.py +++ b/WrightTools/data/_tensor27.py @@ -1,6 +1,5 @@ """Tensor 27.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/data/_variable.py b/WrightTools/data/_variable.py index f5ebe5d42..32e856029 100644 --- a/WrightTools/data/_variable.py +++ b/WrightTools/data/_variable.py @@ -1,6 +1,5 @@ """Variable class and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/datasets/__init__.py b/WrightTools/datasets/__init__.py index e9762b445..b29bd2f38 100644 --- a/WrightTools/datasets/__init__.py +++ b/WrightTools/datasets/__init__.py @@ -1,6 +1,5 @@ """Datasets.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/diagrams/WMEL.py b/WrightTools/diagrams/WMEL.py index d8464f083..621de7d6e 100644 --- a/WrightTools/diagrams/WMEL.py +++ b/WrightTools/diagrams/WMEL.py @@ -1,6 +1,5 @@ """WMEL diagrams.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/diagrams/__init__.py b/WrightTools/diagrams/__init__.py index 331ba7fe2..752f6ec1e 100644 --- a/WrightTools/diagrams/__init__.py +++ b/WrightTools/diagrams/__init__.py @@ -1,4 +1,5 @@ """Diagrams.""" + # flake8: noqa from . import delay diff --git a/WrightTools/diagrams/delay.py b/WrightTools/diagrams/delay.py index 231c9df8b..6c83d5077 100644 --- a/WrightTools/diagrams/delay.py +++ b/WrightTools/diagrams/delay.py @@ -1,6 +1,5 @@ """Delay space.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/exceptions.py b/WrightTools/exceptions.py index 237591742..f5d719cbc 100644 --- a/WrightTools/exceptions.py +++ b/WrightTools/exceptions.py @@ -1,6 +1,5 @@ """Custom exception types.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/__init__.py b/WrightTools/kit/__init__.py index a1966fbe1..c9196e64a 100644 --- a/WrightTools/kit/__init__.py +++ b/WrightTools/kit/__init__.py @@ -1,4 +1,5 @@ """General-purpose tool kit.""" + # flake8: noqa from ._array import * diff --git a/WrightTools/kit/_array.py b/WrightTools/kit/_array.py index 51971cc2d..c4c13c495 100644 --- a/WrightTools/kit/_array.py +++ b/WrightTools/kit/_array.py @@ -1,6 +1,5 @@ """Array interaction tools.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_calculate.py b/WrightTools/kit/_calculate.py index d071576b9..8b98e6406 100644 --- a/WrightTools/kit/_calculate.py +++ b/WrightTools/kit/_calculate.py @@ -1,6 +1,5 @@ """Calculate.""" - # --- import ------------------------------------------------------------- diff --git a/WrightTools/kit/_discover_dimensions.py b/WrightTools/kit/_discover_dimensions.py index 02282e210..c3f963c5e 100644 --- a/WrightTools/kit/_discover_dimensions.py +++ b/WrightTools/kit/_discover_dimensions.py @@ -1,6 +1,5 @@ """Discover dimensions of a flattened ND array.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_ini.py b/WrightTools/kit/_ini.py index b15fa5150..778cff917 100644 --- a/WrightTools/kit/_ini.py +++ b/WrightTools/kit/_ini.py @@ -1,6 +1,5 @@ """Tools for interacting with ini files.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_interpolate.py b/WrightTools/kit/_interpolate.py index c2cedf2c1..b339d2922 100644 --- a/WrightTools/kit/_interpolate.py +++ b/WrightTools/kit/_interpolate.py @@ -1,6 +1,5 @@ """Interpolation tools.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_leastsq.py b/WrightTools/kit/_leastsq.py index d448ba367..40face4c5 100644 --- a/WrightTools/kit/_leastsq.py +++ b/WrightTools/kit/_leastsq.py @@ -1,6 +1,5 @@ """Least-square fitting tools.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_lineshapes.py b/WrightTools/kit/_lineshapes.py index 12986b66e..7fc8f8d16 100644 --- a/WrightTools/kit/_lineshapes.py +++ b/WrightTools/kit/_lineshapes.py @@ -1,6 +1,5 @@ """Lineshapes.""" - # --- import ------------------------------------------------------------- diff --git a/WrightTools/kit/_list.py b/WrightTools/kit/_list.py index 169fb542b..854653c76 100644 --- a/WrightTools/kit/_list.py +++ b/WrightTools/kit/_list.py @@ -1,6 +1,5 @@ """Tools for working with lists.""" - # --- import -------------------------------------------------------------------------------------- import itertools diff --git a/WrightTools/kit/_path.py b/WrightTools/kit/_path.py index ef1dd7560..9e386b615 100644 --- a/WrightTools/kit/_path.py +++ b/WrightTools/kit/_path.py @@ -1,6 +1,5 @@ """Filepath functions.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_timestamp.py b/WrightTools/kit/_timestamp.py index 45000f5f6..04f8ec3cb 100644 --- a/WrightTools/kit/_timestamp.py +++ b/WrightTools/kit/_timestamp.py @@ -1,6 +1,5 @@ """Timestamp class and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_unicode.py b/WrightTools/kit/_unicode.py index cee0cecfd..5a1e6964b 100644 --- a/WrightTools/kit/_unicode.py +++ b/WrightTools/kit/_unicode.py @@ -1,6 +1,5 @@ """Unicode.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/kit/_utilities.py b/WrightTools/kit/_utilities.py index ca6e8fecb..cb955d68f 100644 --- a/WrightTools/kit/_utilities.py +++ b/WrightTools/kit/_utilities.py @@ -1,6 +1,5 @@ """Utilities.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/WrightTools/units.py b/WrightTools/units.py index 5bcf82198..370d424f5 100644 --- a/WrightTools/units.py +++ b/WrightTools/units.py @@ -1,6 +1,5 @@ """Unit and label handling in WrightTools.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/examples/join.py b/examples/join.py index 417dffeb7..7647076ca 100644 --- a/examples/join.py +++ b/examples/join.py @@ -4,6 +4,7 @@ Some examples of how joining works. """ + import numpy as np from matplotlib import pyplot as plt import WrightTools as wt diff --git a/examples/split.py b/examples/split.py index 4b17ad948..db704335a 100644 --- a/examples/split.py +++ b/examples/split.py @@ -4,6 +4,7 @@ Some examples of how splitting works. """ + from matplotlib import pyplot as plt import WrightTools as wt from WrightTools import datasets diff --git a/logo/logo.py b/logo/logo.py index 12cc22b66..9ad84a432 100644 --- a/logo/logo.py +++ b/logo/logo.py @@ -1,6 +1,5 @@ """Generate WrightTools logo.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/base.py b/tests/base.py index b43c9b3b9..ae5daf661 100644 --- a/tests/base.py +++ b/tests/base.py @@ -1,6 +1,5 @@ """Test basic instantiation and handling.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/axis/convert_axis.py b/tests/data/axis/convert_axis.py index b4bb0403c..1198358ff 100644 --- a/tests/data/axis/convert_axis.py +++ b/tests/data/axis/convert_axis.py @@ -1,6 +1,5 @@ """Test axis unit conversion.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/bring_to_front.py b/tests/data/bring_to_front.py index d777c382f..f0cb8bf1f 100644 --- a/tests/data/bring_to_front.py +++ b/tests/data/bring_to_front.py @@ -1,6 +1,5 @@ """Test data bring_to_front.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/channel/normalize.py b/tests/data/channel/normalize.py index 423913c1d..3e4a4f311 100644 --- a/tests/data/channel/normalize.py +++ b/tests/data/channel/normalize.py @@ -1,6 +1,5 @@ """Test channel normalize.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/channel/null.py b/tests/data/channel/null.py index 06ecde6c3..e11d3ba97 100644 --- a/tests/data/channel/null.py +++ b/tests/data/channel/null.py @@ -1,6 +1,5 @@ """Tests to do with null.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_Aramis.py b/tests/data/from_Aramis.py index b6aa759ea..efa6ae2a1 100644 --- a/tests/data/from_Aramis.py +++ b/tests/data/from_Aramis.py @@ -1,6 +1,5 @@ """Test from_Aramis.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_BrunoldrRaman.py b/tests/data/from_BrunoldrRaman.py index c7604d574..312852ddb 100644 --- a/tests/data/from_BrunoldrRaman.py +++ b/tests/data/from_BrunoldrRaman.py @@ -1,6 +1,5 @@ """test from_BrunoldrRaman""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_JASCO.py b/tests/data/from_JASCO.py index 1715271ef..7ce2f3845 100644 --- a/tests/data/from_JASCO.py +++ b/tests/data/from_JASCO.py @@ -1,6 +1,5 @@ """test from_JASCO""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_KENT.py b/tests/data/from_KENT.py index 6bf34499f..e31c2f74f 100644 --- a/tests/data/from_KENT.py +++ b/tests/data/from_KENT.py @@ -1,6 +1,5 @@ """test from_KENT""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_Solis.py b/tests/data/from_Solis.py index c29657272..e78741670 100644 --- a/tests/data/from_Solis.py +++ b/tests/data/from_Solis.py @@ -1,6 +1,5 @@ """test from_JASCO""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_Tensor27.py b/tests/data/from_Tensor27.py index 6a857015b..e902d5f28 100644 --- a/tests/data/from_Tensor27.py +++ b/tests/data/from_Tensor27.py @@ -1,6 +1,5 @@ """test from_Tensor27""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_ocean_optics.py b/tests/data/from_ocean_optics.py index 708581271..c65d163cc 100644 --- a/tests/data/from_ocean_optics.py +++ b/tests/data/from_ocean_optics.py @@ -1,6 +1,5 @@ """Test from_ocean_optics.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_shimadzu.py b/tests/data/from_shimadzu.py index 711e82c70..cfc285bdb 100644 --- a/tests/data/from_shimadzu.py +++ b/tests/data/from_shimadzu.py @@ -1,6 +1,5 @@ """test from_shimadzu""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/from_spcm.py b/tests/data/from_spcm.py index 975e4b7b2..43a9d8714 100644 --- a/tests/data/from_spcm.py +++ b/tests/data/from_spcm.py @@ -1,6 +1,5 @@ """Test from_spcm.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/map_variable.py b/tests/data/map_variable.py index dda19dfed..961fddbbb 100644 --- a/tests/data/map_variable.py +++ b/tests/data/map_variable.py @@ -1,6 +1,5 @@ """Test map_variable.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/prune.py b/tests/data/prune.py index e23e022f8..f211581b6 100644 --- a/tests/data/prune.py +++ b/tests/data/prune.py @@ -1,6 +1,5 @@ """Test remove channel.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/remove_channel.py b/tests/data/remove_channel.py index 19769c4ae..1dabe9f70 100644 --- a/tests/data/remove_channel.py +++ b/tests/data/remove_channel.py @@ -1,6 +1,5 @@ """Test remove channel.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/rename_channels.py b/tests/data/rename_channels.py index 4957af671..a7e5773e7 100644 --- a/tests/data/rename_channels.py +++ b/tests/data/rename_channels.py @@ -1,6 +1,5 @@ """Test rename_channel.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/rename_variables.py b/tests/data/rename_variables.py index 28c3ac8c5..7839362cd 100644 --- a/tests/data/rename_variables.py +++ b/tests/data/rename_variables.py @@ -1,6 +1,5 @@ """Test rename_variable.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/smooth.py b/tests/data/smooth.py index 8b6d81099..f06c77fe6 100644 --- a/tests/data/smooth.py +++ b/tests/data/smooth.py @@ -1,6 +1,5 @@ """Test data.smooth.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/transform.py b/tests/data/transform.py index b7cc7b64e..ccd265503 100644 --- a/tests/data/transform.py +++ b/tests/data/transform.py @@ -1,6 +1,5 @@ """Test transform.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/data/translate_to_txt.py b/tests/data/translate_to_txt.py index c383e056f..e73ed339b 100644 --- a/tests/data/translate_to_txt.py +++ b/tests/data/translate_to_txt.py @@ -1,6 +1,5 @@ """Test transform.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/argmax.py b/tests/dataset/argmax.py index 1cd306119..6bf2db04d 100644 --- a/tests/dataset/argmax.py +++ b/tests/dataset/argmax.py @@ -1,6 +1,5 @@ """Test dataset argmax method.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/argmin.py b/tests/dataset/argmin.py index d765bb55a..235e07e2d 100644 --- a/tests/dataset/argmin.py +++ b/tests/dataset/argmin.py @@ -1,6 +1,5 @@ """Test dataset min method.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/clip.py b/tests/dataset/clip.py index c1a0a8969..c70d0ca4d 100644 --- a/tests/dataset/clip.py +++ b/tests/dataset/clip.py @@ -1,6 +1,5 @@ """Test clipping.""" - # --- import -------------------------------------------------------------------------------------- import WrightTools as wt diff --git a/tests/dataset/convert_dataset.py b/tests/dataset/convert_dataset.py index 5428d3830..d35f25b25 100644 --- a/tests/dataset/convert_dataset.py +++ b/tests/dataset/convert_dataset.py @@ -1,6 +1,5 @@ """Test dataset unit conversion.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/iadd.py b/tests/dataset/iadd.py index a23909c4e..7196dced4 100644 --- a/tests/dataset/iadd.py +++ b/tests/dataset/iadd.py @@ -1,6 +1,5 @@ """Test in place addition.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/imul.py b/tests/dataset/imul.py index d133d0792..a1be91aab 100644 --- a/tests/dataset/imul.py +++ b/tests/dataset/imul.py @@ -1,6 +1,5 @@ """Test in place multiplication.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/ipow.py b/tests/dataset/ipow.py index 9fba23072..7291fcd01 100644 --- a/tests/dataset/ipow.py +++ b/tests/dataset/ipow.py @@ -1,6 +1,5 @@ """Test in place power.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/isub.py b/tests/dataset/isub.py index 7e0a9de9f..8c953efa9 100644 --- a/tests/dataset/isub.py +++ b/tests/dataset/isub.py @@ -1,6 +1,5 @@ """Test in place subtraction.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/itruediv.py b/tests/dataset/itruediv.py index 562abfbad..32c2239fd 100644 --- a/tests/dataset/itruediv.py +++ b/tests/dataset/itruediv.py @@ -1,6 +1,5 @@ """Test in place division.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/log.py b/tests/dataset/log.py index 9dc15d63d..6f5c57fd4 100644 --- a/tests/dataset/log.py +++ b/tests/dataset/log.py @@ -1,6 +1,5 @@ """Test log.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/max.py b/tests/dataset/max.py index 3b2a0b25d..d368538e9 100644 --- a/tests/dataset/max.py +++ b/tests/dataset/max.py @@ -1,6 +1,5 @@ """Test dataset max method.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/dataset/min.py b/tests/dataset/min.py index f43387330..cccb1d3dd 100644 --- a/tests/dataset/min.py +++ b/tests/dataset/min.py @@ -1,6 +1,5 @@ """Test dataset min method.""" - # --- import -------------------------------------------------------------------------------------- import pathlib diff --git a/tests/dataset/symmetric_root.py b/tests/dataset/symmetric_root.py index 0521b8e62..a2aabaa17 100644 --- a/tests/dataset/symmetric_root.py +++ b/tests/dataset/symmetric_root.py @@ -1,6 +1,5 @@ """Test symmetric root.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/docs/_sphinx.py b/tests/docs/_sphinx.py index e7da40cbc..1aab98e1e 100644 --- a/tests/docs/_sphinx.py +++ b/tests/docs/_sphinx.py @@ -1,4 +1,5 @@ """Test building the documentation.""" + from sphinx.cmd import build import os import shutil diff --git a/tests/group/attributes.py b/tests/group/attributes.py index 91a4d6208..e6ddb6e00 100644 --- a/tests/group/attributes.py +++ b/tests/group/attributes.py @@ -1,6 +1,5 @@ """Test getattr and associated.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/closest_pair.py b/tests/kit/closest_pair.py index 20e0e6b73..00d536224 100644 --- a/tests/kit/closest_pair.py +++ b/tests/kit/closest_pair.py @@ -1,6 +1,5 @@ """Test closest pair.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/diff.py b/tests/kit/diff.py index 235f9f5f2..dff1450ea 100644 --- a/tests/kit/diff.py +++ b/tests/kit/diff.py @@ -1,6 +1,5 @@ """Test diff.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/fft.py b/tests/kit/fft.py index 5fb4973c5..6f04b4595 100644 --- a/tests/kit/fft.py +++ b/tests/kit/fft.py @@ -1,6 +1,5 @@ """Test fft.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/flatten_list.py b/tests/kit/flatten_list.py index 129a501fa..388ff1822 100644 --- a/tests/kit/flatten_list.py +++ b/tests/kit/flatten_list.py @@ -1,6 +1,5 @@ """test flatten_list""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/fluence.py b/tests/kit/fluence.py index d926d4618..fe88205fb 100644 --- a/tests/kit/fluence.py +++ b/tests/kit/fluence.py @@ -1,6 +1,5 @@ """Test fluence.""" - # --- import ------------------------------------------------------------- diff --git a/tests/kit/get_index.py b/tests/kit/get_index.py index d372ab726..c601eaec5 100644 --- a/tests/kit/get_index.py +++ b/tests/kit/get_index.py @@ -1,6 +1,5 @@ """Test get_index.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/get_path_matching.py b/tests/kit/get_path_matching.py index 3109f9883..1c8399740 100644 --- a/tests/kit/get_path_matching.py +++ b/tests/kit/get_path_matching.py @@ -1,6 +1,5 @@ """Test get_path_matching.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/glob_handler.py b/tests/kit/glob_handler.py index 035ac2b61..3f6f85945 100644 --- a/tests/kit/glob_handler.py +++ b/tests/kit/glob_handler.py @@ -1,6 +1,5 @@ """Test glob_handler.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/intersperse.py b/tests/kit/intersperse.py index 1cd4b9ff2..c266e67d2 100644 --- a/tests/kit/intersperse.py +++ b/tests/kit/intersperse.py @@ -1,6 +1,5 @@ """Test intersperse.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/joint_shape.py b/tests/kit/joint_shape.py index 60b85f505..d324bc8ab 100644 --- a/tests/kit/joint_shape.py +++ b/tests/kit/joint_shape.py @@ -1,6 +1,5 @@ """Test joint_shape.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/lineshapes.py b/tests/kit/lineshapes.py index 4196f7c10..ccaa59576 100644 --- a/tests/kit/lineshapes.py +++ b/tests/kit/lineshapes.py @@ -1,6 +1,5 @@ """Test lineshapes.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/nm_width.py b/tests/kit/nm_width.py index ad7dbb263..22c14cf18 100644 --- a/tests/kit/nm_width.py +++ b/tests/kit/nm_width.py @@ -1,6 +1,5 @@ """Test nm_width.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/smooth_1D.py b/tests/kit/smooth_1D.py index 264c57fe0..898a204e2 100644 --- a/tests/kit/smooth_1D.py +++ b/tests/kit/smooth_1D.py @@ -1,6 +1,5 @@ """Test kit.smooth_1D.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/string2identifier.py b/tests/kit/string2identifier.py index b5967390b..d8d82021f 100644 --- a/tests/kit/string2identifier.py +++ b/tests/kit/string2identifier.py @@ -1,6 +1,5 @@ """Test string2identifier.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/symmetric_sqrt.py b/tests/kit/symmetric_sqrt.py index 55112d051..70d446495 100644 --- a/tests/kit/symmetric_sqrt.py +++ b/tests/kit/symmetric_sqrt.py @@ -1,6 +1,5 @@ """test symmetric_sqrt""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/kit/timer.py b/tests/kit/timer.py index 9a716c8e5..1447dfd8a 100644 --- a/tests/kit/timer.py +++ b/tests/kit/timer.py @@ -1,6 +1,5 @@ """Test timer.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/timestamp.py b/tests/kit/timestamp.py index f7011e2f5..c174f1ed0 100644 --- a/tests/kit/timestamp.py +++ b/tests/kit/timestamp.py @@ -1,6 +1,5 @@ """Test timestamp.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/unicode.py b/tests/kit/unicode.py index 73b2dcb4f..a49acb620 100644 --- a/tests/kit/unicode.py +++ b/tests/kit/unicode.py @@ -1,6 +1,5 @@ """Test unicode dictionary.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/unique.py b/tests/kit/unique.py index 064341934..f3ba01043 100644 --- a/tests/kit/unique.py +++ b/tests/kit/unique.py @@ -1,6 +1,5 @@ """Test unique.""" - # --- import ------------------------------------------------------------------------------------- diff --git a/tests/kit/valid_index.py b/tests/kit/valid_index.py index 1125a34ca..bd46dd976 100644 --- a/tests/kit/valid_index.py +++ b/tests/kit/valid_index.py @@ -1,6 +1,5 @@ """Test valid index function.""" - # --- import -------------------------------------------------------------------------------------- diff --git a/tests/units.py b/tests/units.py index 2c871a0ad..2214e691c 100644 --- a/tests/units.py +++ b/tests/units.py @@ -1,6 +1,5 @@ """Test units.""" - # --- import ------------------------------------------------------------------------------------- import numpy as np