Skip to content

Commit

Permalink
Skip errors in coverage of example notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bdestombe committed Nov 4, 2023
1 parent 9850f87 commit 62816f1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 107 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ docs/_build
*.bak
.vscode/settings.json
*.code-workspace
xunit-result.xml
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ format = ["black .", "isort .", "lint",]
test = ["pytest -n auto --dist worksteal ./src/ ./tests/",]
fast-test = ["pytest -n auto --dist worksteal ./tests/ -m \"not slow\"",]
coverage = [
"pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml tests/",
"pytest --cov --cov-report term --cov-report xml --cov-branch --junitxml=xunit-result.xml tests/",
]

[tool.hatch.envs.docs]
Expand Down Expand Up @@ -145,27 +145,27 @@ markers = [
select = [ # It would be nice to have the commented out checks working.
"E", # pycodestyle
"F", # pyflakes
# "B", # flake8-bugbear
# "D", # pydocstyle
"B", # flake8-bugbear
"D", # pydocstyle
# "C90", # mccabe complexity
# "N", # PEP8-naming
"UP", # pyupgrade (upgrade syntax to current syntax)
"PLE", # Pylint error https://github.com/charliermarsh/ruff#error-ple
# "PLR", # Pylint refactor (e.g. too-many-arguments)
# "PLW", # Pylint warning (useless-else-on-loop)
"PLW", # Pylint warning (useless-else-on-loop)
]
extend-select = [
# "D401", # First line should be in imperative mood
# "D400", # First line should end in a period.
# "D404", # First word of the docstring should not be "This"
"D401", # First line should be in imperative mood
"D400", # First line should end in a period.
"D404", # First word of the docstring should not be "This"
"TID252", # No relative imports (not pep8 compliant)
]
ignore = [
"PLR2004", # magic value used in comparson
"E501", # Line too long (want to have fixed
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["E", "F", "UP", "PLE"]
fixable = ["E", "F", "UP", "PLE", "D"]
unfixable = []
line-length = 88
exclude = ["docs", "build"]
Expand Down
69 changes: 0 additions & 69 deletions src/dtscalibration/averaging_utils.py

This file was deleted.

30 changes: 0 additions & 30 deletions src/dtscalibration/dts_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2411,36 +2411,6 @@ def average_monte_carlo_double_ended(
-------
"""

# def create_da_ta2(no, i_splice, direction="fw", chunks=None):
# """create mask array mc, o, nt"""

# if direction == "fw":
# arr = da.concatenate(
# (
# da.zeros((1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool),
# da.ones(
# (1, no - i_splice, 1),
# chunks=(1, no - i_splice, 1),
# dtype=bool,
# ),
# ),
# axis=1,
# ).rechunk((1, chunks[1], 1))
# else:
# arr = da.concatenate(
# (
# da.ones((1, i_splice, 1), chunks=(1, i_splice, 1), dtype=bool),
# da.zeros(
# (1, no - i_splice, 1),
# chunks=(1, no - i_splice, 1),
# dtype=bool,
# ),
# ),
# axis=1,
# ).rechunk((1, chunks[1], 1))
# return arr

out = xr.Dataset(
coords={"x": self.x, "time": self.time, "trans_att": result["trans_att"]}
).copy()
Expand Down

0 comments on commit 62816f1

Please sign in to comment.