Skip to content

Commit a79b3ee

Browse files
committed
fix import issues
1 parent 3811648 commit a79b3ee

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

src/SpaceExParser.jl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,25 @@ export readsxmodel, writesxmodel
66
Load dependencies
77
=========================================#
88

9-
using HybridSystems, LazySets
109
using DataStructures: OrderedDict
11-
import MathematicalSystems
12-
using MathematicalSystems: AbstractSystem, AbstractContinuousSystem,
13-
LinearContinuousSystem, LinearControlContinuousSystem,
10+
using EzXML: readxml, root, eachelement, nodename, nodecontent
11+
using HybridSystems: AbstractSwitching, AutonomousSwitching, GraphAutomaton,
12+
HybridSystem, add_transition!, assignment, guard, inputdim,
13+
inputset, nmodes, ntransitions, resetmap, source, statedim,
14+
stateset, target, transitions
15+
using LazySets: LazySets, AbstractHyperrectangle, HalfSpace, Hyperplane,
16+
Intersection, LazySet, Singleton, dim, high, isuniversal, low
17+
using MathematicalSystems: MathematicalSystems, AbstractSystem,
18+
AbstractContinuousSystem, LinearContinuousSystem,
19+
LinearControlContinuousSystem,
1420
AffineContinuousSystem,
1521
AffineControlContinuousSystem,
1622
ConstrainedLinearContinuousSystem,
1723
ConstrainedLinearControlContinuousSystem,
1824
ConstrainedLinearControlDiscreteSystem,
1925
ConstrainedAffineContinuousSystem,
2026
ConstrainedAffineControlContinuousSystem
21-
using EzXML: readxml, root, eachelement, nodename, nodecontent
22-
using SymEngine: Basic, subs
27+
using SymEngine: Basic, free_symbols, subs
2328

2429
import Base: convert
2530

src/parse.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const _parse_s = Base.Meta.parse
1+
const _parse_s = Base.Meta.parse # NOTE: this is an internal function
22
const _parse_t = Base.parse
33

44
"""

src/symbolic.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,16 @@ end
208208
# ref_tuple is used for the error message
209209
function _add_invariants!(X, U, invariants, state_variables, input_variables, ref_tuple)
210210
for invi in invariants
211-
if LazySets._ishyperplanar(invi)
211+
if LazySets._ishyperplanar(invi) # NOTE: this is an internal function
212212
set_type = Hyperplane{NUM}
213-
elseif LazySets._ishalfspace(invi)
213+
elseif LazySets._ishalfspace(invi) # NOTE: this is an internal function
214214
set_type = HalfSpace{NUM}
215215
else
216216
loc_or_trans, id = ref_tuple
217217
error_msg_set(loc_or_trans, invi, id)
218218
end
219219

220-
vars = LazySets.free_symbols(invi, set_type)
220+
vars = free_symbols(invi, set_type)
221221
got_state_invariant = all(si in state_variables for si in vars)
222222
got_input_invariant = all(si in input_variables for si in vars)
223223
if got_state_invariant

0 commit comments

Comments
 (0)