On Sep 27, 6:23 pm, Alessandro wrote:
>
> I have a string defining a path, were all the spaces have been
> converted to underscores.
>
(...)
>
> notice that the real path can contain BOTH spaces and underscores.
>
> How can I feed it to os.path.exists() ???
You are losing some information, ther
Hello,
I want to create some XML files, following a simple template. For that
purpose, I created a simple interface to minidom. This is simple code,
but as I spend a little time for understanding how minidom was
working, I thought that this may be useful for someone (not that
minidom is complex, b
On Sep 23, 1:50 am, Nobody wrote:
> You can use arrays as indices, so applying a transformation to a set of
> index arrays (e.g. np.indices) then using those as indices is equivalent
> to applying a spatial transform to the data.
I am not sure that this would do the trick, e.g. for extracting a
Hello,
after some computations, I obtain a 2D matrix of data, in a numpy
array. I can easily plot them using pyplot, and can easily extract
either vertical or horizontal slices by plotting a row or a column of
this matrix. I would like to be able to plot slices form this data
array, but with an ar