flake8
This commit is contained in:
parent
25dfee86b0
commit
1b18efadfa
7 changed files with 7 additions and 15 deletions
|
|
@ -1,11 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from collections import deque, namedtuple
|
||||
from functools import lru_cache
|
||||
from collections import deque
|
||||
from typing import Union, NamedTuple
|
||||
|
||||
import attr
|
||||
import funcy as fn
|
||||
from lenses import lens, bind
|
||||
from lenses import bind
|
||||
|
||||
import mtl
|
||||
|
||||
|
|
@ -129,8 +128,6 @@ def ast_class(cls):
|
|||
if not hasattr(cls, "children"):
|
||||
cls.children = property(lambda _: ())
|
||||
|
||||
|
||||
|
||||
return attr.s(frozen=True, auto_attribs=True, repr=False, slots=True)(cls)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ def negate_trace(x):
|
|||
|
||||
|
||||
def pointwise_sat(phi, dt=0.1):
|
||||
ap_names = [z.id for z in phi.atomic_predicates]
|
||||
|
||||
def _eval_mtl(x, t=0):
|
||||
return bool(eval_mtl(phi, dt)(x)[t])
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import mtl
|
||||
from mtl.hypothesis import MetricTemporalLogicStrategy
|
||||
|
||||
import hypothesis.strategies as st
|
||||
from hypothesis import given
|
||||
|
|
@ -13,4 +12,3 @@ def test_params1(a, b, c):
|
|||
phi2 = phi[{'a': a, 'b': b}]
|
||||
assert phi2.params == set()
|
||||
assert phi2 == mtl.parse(f'G[{a}, {b}](x)')
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from hypothesis import event, given
|
||||
from hypothesis import given
|
||||
from traces import TimeSeries
|
||||
|
||||
import mtl
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ import mtl
|
|||
from mtl.hypothesis import MetricTemporalLogicStrategy
|
||||
|
||||
from hypothesis import given
|
||||
from pytest import raises
|
||||
|
||||
CONTEXT = {
|
||||
'ap1': mtl.parse('x'),
|
||||
|
|
@ -13,6 +12,7 @@ CONTEXT = {
|
|||
}
|
||||
APS = set(CONTEXT.keys())
|
||||
|
||||
|
||||
def test_inline_context_rigid():
|
||||
phi = mtl.parse('G ap1')
|
||||
assert phi[CONTEXT] == mtl.parse('G x')
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ from math import isfinite
|
|||
|
||||
import traces
|
||||
import numpy as np
|
||||
from lenses import bind
|
||||
|
||||
import mtl.ast
|
||||
from mtl.ast import (And, F, G, Interval, Neg, Or, Next, Until,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
-e git://github.com/mvcisback/hypothesis-cfg@master#egg=hypothesis-cfg
|
||||
-e git://github.com/mvcisback/multidim-threshold@master#egg=multidim-threshold
|
||||
bitarray==0.8.1
|
||||
funcy==1.9.1
|
||||
lenses==0.4.0
|
||||
parsimonious==0.7.0
|
||||
traces==0.3.1
|
||||
hypothesis==3.32.1
|
||||
numpy==1.15.0
|
||||
|
||||
pytest==3.2.3
|
||||
pytest-bpdb==0.1.4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue