Skip to content

Commit

Permalink
pylinting
Browse files Browse the repository at this point in the history
  • Loading branch information
treyra committed Jul 29, 2024
1 parent d36f7ba commit 81df8a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions failurePy/load/yamlLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ def loadExperimentParams(inputDict,extraData=False,silent=False):
#Load dimensions and linearity, from this construct system parameters. dt is pretty universal, so making an exception for it
systemF, systemParametersTuple, physicalStateJacobianF, dim, linear, dt, sigmaW, sigmaV, numAct= loadAndBuildSingleAgentSystem(inputDict,providedFailure,generalFaultFlag,silent) # pylint: disable=invalid-name

#To get the number of states, this is length of covariance matrix, which is the -2 element of the systemParametersTuple
covarianceQ = systemParametersTuple[-2]
numState = len(covarianceQ)
#Unneeded currently for any estimator, solver, or reward
##To get the number of states, this is length of covariance matrix, which is the -2 element of the systemParametersTuple
#covarianceQ = systemParametersTuple[-2]
#numState = len(covarianceQ)

#Load estimator and belief initialization function
estimatorF,physicalStateSubEstimatorF,physicalStateSubEstimatorSampleF, beliefInitializationF = loadEstimatorAndBelief(inputDict,linear,generalFaultFlag,silent=silent)
Expand Down
8 changes: 4 additions & 4 deletions failurePy/utility/dataAnalysisFunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,13 +872,13 @@ def loadExactAndSampleSafetyFunctionF(experimentDataDirAbsolutePath, returnAlpha

# Could be more efficient getting components here, but seems okay for now
silent = True
dummySystemF,systemParametersTuple,dummyPhysicalStateJacobianF,dummyDim,linear,dummyDt,dummySigmaW,dummySigmaV, dummyNumAct = loadAndBuildSingleAgentSystem(
dummySystemF,dummySystemParametersTuple,dummyPhysicalStateJacobianF,dummyDim,linear,dummyDt,dummySigmaW,dummySigmaV, dummyNumAct = loadAndBuildSingleAgentSystem(
inputDict, providedFailure=None,generalFaultFlag=False, silent=silent) #Even if we have general fault system, don't need it for safety analysis, as systemParametersTuple isn't affected


#unneeded for any estimator or reward right now
# To get the number of states, this is length of covariance matrix, which is the -2 element of the systemParametersTuple
covarianceQ = systemParametersTuple[-2]
numState = len(covarianceQ)
#covarianceQ = systemParametersTuple[-2]
#numState = len(covarianceQ)

# Load estimator and belief initialization function
dummyEstimatorF,dummyPhysicalStateSubEstimatorF,physicalStateSubEstimatorSampleF, dummyBeliefInitializationF = loadEstimatorAndBelief(
Expand Down

0 comments on commit 81df8a5

Please sign in to comment.