#NEWLINE# @ typecheck ( ExperimentInstanceId ) #NEWLINE# def remove_resource_instance_id( self , experiment_instance_id ) : #NEWLINE# #INDENT# client = self . _redis_maker ( ) #NEWLINE# experiment_id_str = experiment_instance_id . to_experiment_id ( ) . to_weblab_str ( ) #NEWLINE# weblab_experiment_instances = ( WEBLAB_EXPERIMENT_INSTANCES % experiment_id_str ) #NEWLINE# weblab_experiment_instance = ( WEBLAB_EXPERIMENT_INSTANCE % ( experiment_id_str , experiment_instance_id . inst_name ) ) #NEWLINE# resource_instance = client . hget ( weblab_experiment_instance , RESOURCE_INST ) #NEWLINE# if ( experiment_id_str is not None ) : #NEWLINE# #INDENT# resource = Resource . parse ( resource_instance ) #NEWLINE# weblab_resource_experiment_instances = ( WEBLAB_RESOURCE_INSTANCE_EXPERIMENTS % ( resource . resource_type , resource . resource_instance ) ) #NEWLINE# client . srem ( weblab_experiment_instances , experiment_instance_id . inst_name ) #NEWLINE# client . delete ( weblab_experiment_instance ) #NEWLINE# client . srem ( weblab_resource_experiment_instances , experiment_instance_id . to_weblab_str ( ) )