bogeholm/pytisean

Incorrect error message/error checking

Opened this issue · 1 comments

Failure to feed TISEAN required arguments leads to impaired file creation (rather than any warning about arguments)

Example:

dat = np.random.uniform(0,1,100)
stps, _ = tiseanio("stp", '-d1', '-m2', '-t400', '-%0.5', data=dat)
stps, _ = tiseanio("stp", '-d1', '-t400', '-%0.5', data=dat)

./stp requires -d and -m, and so the second call should fail, but earlier and not this way:

FileNotFoundError: [Errno 2] No such file or directory: '/private/tmp/pytisean_temp_2018-05-07-13-28-21_16qrs5t3/outFile'

Hi @enfascination thx for your interest in this 👍 I am afraid that I don't currently have the ressources to work on pytisean, but any pull requests are welcome :-)

Please let me know if I can help with that.