<s> """<STR_LIT>""" <EOL> import logging <EOL> import numpy <EOL> from envisage . api import ApplicationObject <EOL> from apptools . naming . unique_name import make_unique_name <EOL> from blockcanvas . numerical_modeling . numeric_context . api import NumericContext <EOL> from blockcanvas . numerical_modeling . units . unit_array import UnitArray <EOL> from scimath . units . api import convert , unit_manager <EOL> from scimath . units . mass import gram <EOL> from scimath . units . volume import cc <EOL> from scimath . units . length import meter <EOL> from scimath . units . geo_units import ppg , psi <EOL> from pyface . wx . clipboard import clipboard <EOL> logger = logging . getLogger ( __name__ ) <EOL> class ModelService ( ApplicationObject ) : <EOL> """<STR_LIT>""" <EOL> def delete_context_item ( self , context , item_name ) : <EOL> """<STR_LIT>""" <EOL> if isinstance ( context , NumericContext ) and context . has_key ( item_name ) : <EOL> context . pop ( item_name ) <EOL> else : <EOL> logger . error ( '<STR_LIT>' ) <EOL> return </s>
