lacourjansenlab / NISE_2017

This is the current development version of a quantum classical package for calculating coherent multidimensional spectra (as FTIR, SFG, 2DIR, 2DES, 2DSFG, and F-2DES).
Other
1 stars 2 forks source link

relative filepaths in inputfile are unintuitive #32

Open Kimvana opened 11 months ago

Kimvana commented 11 months ago

Describe the bug When specifying the (seemingly) correct path for my hamiltonian and dipole files in the input file, they cannot be found. Reason: instead of the paths being relative to the location of the input file, they are relative to the place the input file is called from.

To Reproduce Steps to reproduce the behavior:

  1. make a folder named 'calc' to run the calculation in. Here, create a (slurm) script file, and a subfolder named 'input'.
  2. inside 'input', put the 'inputNISE' file, and the required hamiltonian/dipole files. In the inputNISE file, place the names of the required files, without a further path.
  3. realize that if the slurm script file were to live in the 'input' folder (and would be submitted/called from here), this setup would work.
  4. go back to the 'calc' folder, and in the script file, call the NISE program, and supply it the 'input/inputNISE' file.
  5. Submit the calculation. You will get the error 'Hamiltonian file not found'

Expected behavior Filepaths relative to the input file would work. Or, at least, an explanation of how paths should be supplied should be specified in the manual.