Hey,
I'm working on a project for which I would like to dump data into a
file in a specified directory (that doesn't necessarily exist yet). I
know matplotlib.mlab.save(fname, X) will only work if I want to save
data from an array/list to a file in the current working directory. Is
there an easy
On Thu, Nov 20, 2008 at 10:24 AM, Joshua Lippai [EMAIL PROTECTED] wrote:
Hey,
I'm working on a project for which I would like to dump data into a
file in a specified directory (that doesn't necessarily exist yet). I
know matplotlib.mlab.save(fname, X) will only work if I want to save
data
Ah, silly me. I forgot to notice I was using a path variable in the
string I was giving to mlab.save. Part A works just fine when I
account for that. Now that just leaves creating the directory. I like
the cbook.mkdirs implementation a lot better than the non-recursive
version in os... thanks for
Joshua Lippai wrote:
Now that just leaves creating the directory. I like
the cbook.mkdirs implementation a lot better than the non-recursive
version in os... thanks for the tip!
why not os.makedirs() ?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
On Thu, Nov 20, 2008 at 11:22 AM, Christopher Barker
[EMAIL PROTECTED] wrote:
Joshua Lippai wrote:
Now that just leaves creating the directory. I like
the cbook.mkdirs implementation a lot better than the non-recursive
version in os... thanks for the tip!
why not os.makedirs() ?
Wow, that
But given the vagueness of what I asked, you're right, os.makedirs was
a good suggestion too. Thanks. I think I need to sit down and spend
some quality time with the os module over Thanksgiving holiday...
Josh
On Thu, Nov 20, 2008 at 9:30 AM, Joshua Lippai [EMAIL PROTECTED] wrote:
cbook.mkdirs