tdgrant1 / denss

Calculate electron density from a solution scattering profile
GNU General Public License v3.0
31 stars 20 forks source link

denss writes output in data directory by default, not working directory #20

Closed dfranke76 closed 3 years ago

dfranke76 commented 3 years ago

$ pwd /some/path/foo $ ls ly01.out $ mkdir bar; cd bar $ denss.py -f ../ly01.out

I would usually expect the files in the current working directory, here foo/bar, but they are created in foo instead. This can be worked around with "-o ./someprefix".

tdgrant1 commented 3 years ago

hmm, I'll have to think about this. Maybe most people would prefer to place the output files in the current directory rather than in the directory location of the input file. I'll have to double check if other scripts are affected by this first, such as those that create directories.

tdgrant1 commented 3 years ago

I have updated the code to reflect this, commit here.