isochrones icon indicating copy to clipboard operation
isochrones copied to clipboard

Home directory has no space for .isochrones

Open awallace142857 opened this issue 3 years ago • 3 comments

Hi,

I have successfully installed isochrones (I think) on a remote server and have tried running nosetests. This fails because it attempts to save data to ~/.isochrones but my home directory has very limited space. Is there a way of changing the default directory for .isochrones?

awallace142857 avatar May 16 '22 02:05 awallace142857

I have exactly the same problem.

I may have just worked around it by editing the 'isochrones/config.py' file (installed by pip per the installation instructions). I changed

os.path.expanduser(os.path.join("~", ".isochrones"))

to

"my_path/.isochrones"

where my_path is the directory, other than /home, where I want .isochrones to be written.

So far so good, but hopefully that didn't break something else...

mgwalkergit avatar May 20 '22 16:05 mgwalkergit

Rather than changing the source code (which will work for you, but isn't an ideal solution), you can also define an ISOCHRONES environment variable; e.g.

export ISOCHRONES=/path/to/dir/with/more/space/.isochrones

timothydmorton avatar May 23 '22 15:05 timothydmorton

Another solution that I've used is to create a symbolic link from ~/.isochrones to wherever you want the data to go. I've used the same trick for other packages that create local caches.

warrickball avatar Jun 30 '22 10:06 warrickball