Skip to content

Commit c60d8ca

Browse files
committed
run pre-commit run --all
1 parent 0a5cbe1 commit c60d8ca

33 files changed

+22
-68
lines changed

adaptive/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from contextlib import suppress
42

53
from adaptive import learner, runner, utils

adaptive/_version.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# This file is part of 'miniver': https://github.com/jbweston/miniver
32
#
43
import os

adaptive/learner/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from contextlib import suppress
42

53
from adaptive.learner.average_learner import AverageLearner

adaptive/learner/average_learner.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
from math import sqrt
42

53
import numpy as np

adaptive/learner/balancing_learner.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import itertools
42
from collections import defaultdict
53
from collections.abc import Iterable

adaptive/learner/base_learner.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# -*- coding: utf-8 -*-
2-
31
import abc
42
from contextlib import suppress
53
from copy import deepcopy
64

7-
from adaptive.utils import load, save, _RequireAttrsABCMeta
5+
from adaptive.utils import _RequireAttrsABCMeta, load, save
86

97

108
def uses_nth_neighbors(n):

adaptive/learner/data_saver.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import functools
42
from collections import OrderedDict
53

adaptive/learner/integrator_coeffs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Based on an adaptive quadrature algorithm by Pedro Gonnet
32

43
from collections import defaultdict

adaptive/learner/integrator_learner.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Based on an adaptive quadrature algorithm by Pedro Gonnet
32

43
import sys
@@ -572,9 +571,15 @@ def _get_data(self):
572571
)
573572

574573
def _set_data(self, data):
575-
self.priority_split, self.data, self.pending_points, self._stack, x_mapping, self.ivals, self.first_ival = (
576-
data
577-
)
574+
(
575+
self.priority_split,
576+
self.data,
577+
self.pending_points,
578+
self._stack,
579+
x_mapping,
580+
self.ivals,
581+
self.first_ival,
582+
) = data
578583

579584
# Add the pending_points to the _stack such that they are evaluated again
580585
for x in self.pending_points:

adaptive/learner/learner1D.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
import itertools
42
import math
53
from collections.abc import Iterable

0 commit comments

Comments
 (0)