Skip to content

Commit

Permalink
fixup! core: add signal projection v2 endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Erashin committed Apr 26, 2024
1 parent 8c14b4c commit fa94289
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import fr.sncf.osrd.signaling.SignalingSimulator
import fr.sncf.osrd.signaling.ZoneStatus
import fr.sncf.osrd.sim_infra.api.*
import fr.sncf.osrd.sim_infra.impl.ChunkPath
import fr.sncf.osrd.sim_infra.utils.recoverBlocks
import fr.sncf.osrd.standalone_sim.*
import fr.sncf.osrd.utils.indexing.StaticIdxList
import fr.sncf.osrd.utils.indexing.mutableStaticIdxArrayListOf
Expand Down Expand Up @@ -56,15 +55,6 @@ fun projectSignals(
val blockPath = mutableStaticIdxArrayListOf<Block>()
for (block in detailedBlockPath) blockPath.add(block.block)

val blockPaths =
recoverBlocks(
rawInfra,
blockInfra,
routePath,
mutableStaticIdxArrayListOf(bal, bapr, tvm300, tvm430)
)
assert(blockPaths.isNotEmpty())

val zoneMap = mutableMapOf<String, Int>()
var zoneCount = 0
for (block in blockPath) {
Expand Down Expand Up @@ -152,7 +142,7 @@ private fun computeSignalAspectChangeEvents(
} else {
loadedSignalInfra.getSignalingSystem(
lastSignal
) // If it could connect to anything, lets pretend it does to itself
) // If it could not connect to anything, lets pretend it does to itself
}
val nextSignalState = leastConstrainingStates[lastSignalInputSystem]!!

Expand Down

0 comments on commit fa94289

Please sign in to comment.