old_contents: #
  #   Copyright (c) 2013-2015, Scott J Maddox
  #
  #   This file is part of openbandparams.
  #
  #   openbandparams is free software: you can redistribute it and/or modify
  #   it under the terms of the GNU Affero General Public License as published
  #   by the Free Software Foundation, either version 3 of the License, or
  #   (at your option) any later version.
  #
  #   openbandparams is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU Affero General Public License for more details.
  #
  #   You should have received a copy of the GNU Affero General Public License
  #   along with openbandparams.  If not, see <http://www.gnu.org/licenses/>.
  #
  #############################################################################
  
  from .alloy import Alloy
  from .parameter import method_parameter
  
  class IIIVAlloy(Alloy):
      '''
      The base class for all III-V alloys.
      '''
      
      @method_parameter(dependencies=['Eg', 'VBO'], units='eV')
      def electron_affinity(self, **kwargs):
          return 4.66-self.Eg(**kwargs)-self.VBO(**kwargs)
  
new_contents: #
  #   Copyright (c) 2013-2015, Scott J Maddox
  #
  #   This file is part of openbandparams.
  #
  #   openbandparams is free software: you can redistribute it and/or modify
  #   it under the terms of the GNU Affero General Public License as published
  #   by the Free Software Foundation, either version 3 of the License, or
  #   (at your option) any later version.
  #
  #   openbandparams is distributed in the hope that it will be useful,
  #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #   GNU Affero General Public License for more details.
  #
  #   You should have received a copy of the GNU Affero General Public License
  #   along with openbandparams.  If not, see <http://www.gnu.org/licenses/>.
  #
  #############################################################################
  
  from .alloy import Alloy
  from .parameter import method_parameter
  
  class IIIVAlloy(Alloy):
      '''
      The base class for all III-V alloys.
      '''
      
      @method_parameter(dependencies=['CBO'], units='eV')
      def electron_affinity(self, **kwargs):
          return 4.66-self.CBO(**kwargs)
  
subject: change `electron_affinity` to use `CBO`