How to use the adaptive.learner.integrator_learner._Interval.make_first function in adaptive

To help you get started, we’ve selected a few adaptive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github python-adaptive / adaptive / adaptive / learner / integrator_learner.py View on Github external
done : bool
            Returns whether the `tol` has been reached.
        plot : hv.Scatter
            Plots all the points that are evaluated.
        """
        self.function = function
        self.bounds = bounds
        self.tol = tol
        self.max_ivals = 1000
        self.priority_split = []
        self.done_points = {}
        self.pending_points = set()
        self._stack = []
        self.x_mapping = defaultdict(lambda: SortedSet([], key=attrgetter('rdepth')))
        self.ivals = set()
        ival = _Interval.make_first(*self.bounds)
        self.add_ival(ival)
        self.first_ival = ival
github python-adaptive / adaptive / adaptive / learner / integrator_learner.py View on Github external
done : bool
            Returns whether the `tol` has been reached.
        plot : hv.Scatter
            Plots all the points that are evaluated.
        """
        self.function = function
        self.bounds = bounds
        self.tol = tol
        self.max_ivals = 1000
        self.priority_split = []
        self.data = {}
        self.pending_points = set()
        self._stack = []
        self.x_mapping = defaultdict(lambda: SortedSet([], key=attrgetter("rdepth")))
        self.ivals = set()
        ival = _Interval.make_first(*self.bounds)
        self.add_ival(ival)
        self.first_ival = ival