@@ -160,7 +160,7 @@ def assign(self, matrices: dict, iteration: Union[int,str]) -> Dict:
160160 raise ValueError ("Iteration number not valid" )
161161
162162 mtxs = {imp_type : self ._get_matrices (imp_type , iteration == "last" )
163- for imp_type in ("time" , "cost" , "dist" , "congest_time" )}
163+ for imp_type in ("time" , "cost" , "dist" )}
164164 # fix the emme path analysis results
165165 # (dist and cost are zero if path not found but we want it to
166166 # be the default value 999999)
@@ -483,6 +483,9 @@ def _get_matrices(self,
483483 matrices [ass_class ] = mtx
484484 if not (param .always_congested or is_last_iteration ):
485485 matrices ["transit_leisure" ] = matrices ["transit_work" ]
486+ if mtx_type == "time" and param .always_congested :
487+ matrices ["transit_leisure_uncongested" ] = matrices ["transit_leisure" ] - self ._get_matrix ("transit_leisure" , "congest_time" )
488+ matrices ["transit_work_uncongested" ] = matrices ["transit_work" ] - self ._get_matrix ("transit_work" , "congest_time" )
486489 return matrices
487490
488491 def _get_matrix (self ,
@@ -830,7 +833,7 @@ def _assign_congested_transit(self):
830833 stopping_criteria = param .trass_stop ,
831834 log_worksheets = False , scenario = self .emme_scenario ,
832835 save_strategies = True )
833- # save uncongested results for both both classes
836+ # save congested travel times for both classes
834837 for tc in specs :
835838 self .emme_project .strategy_analysis (
836839 specs [tc ].strategy_analysis_spec , scenario = self .emme_scenario ,
0 commit comments