(self, block_id)
return self._scale_base**(self._num_resolutions - block_id)
Returns the scale factor for network block `block_id`.
Returns the scale factor for network block `block_id`.
Returns the scale factor for network block block_id .
def scale_factor(self, block_id):
    """Returns the scale factor for network block `block_id`."""
    if block_id < 1 or block_id > self._num_resolutions:
      raise ValueError('`block_id` must be in [1, {}]'.format(
          self._num_resolutions))
    return self._scale_base**(self._num_resolutions - block_id)
def scale_factor ( self , block_id ) : if block_id < 1 or block_id > self . _num_resolutions : raise ValueError ( '`block_id` must be in [1, {}]' . format ( self . _num_resolutions ) ) return self . _scale_base ** ( self . _num_resolutions - block_id )