New version of bounds_to_slice (the former one is still there but commented out). This function is not used for the moment, so changing it does not change the way topographica works. Also, I changed bounds2shape to an equivalent version, and updated the comment about that. Both solutions would be reasonnable, and give the appropriate results in the cases where we should use this function (i.E. in patterngenerator and for generating the weights); nevertheless, it is not possible to use this function for implementing the functions that need to transform a slice to bounds and then convert them back, that is why bounds2shape is no longer used by the bounds_to_slice function.
New version of bounds_to_slice (the former one is still there but commented out). This function is not used for the moment, so changing it does not change the way topographica works. Also, I changed bounds2shape to an equivalent version, and updated the comment about that. Both solutions would be reasonnable, and give the appropriate results in the cases where we should use this function (i.E. in patterngenerator and for generating the weights); nevertheless, it is not possible to use this function for implementing the functions that need to transform a slice to bounds and then convert them back, that is why bounds2shape is no longer used by the bounds_to_slice function.


ioam/svn-history,ioam/svn-history,ioam/svn-history,ioam/svn-history,ioam/svn-history