check_json_fname
- nrv.backend.check_json_fname(fname)[source]
Add “.json” extension is missing at the end of the file name and check if it exists.
- Parameters:
fname (str) – name of the file
Retruns
-------
fname – name of the file with the “.json” extension added if required
Errors
------
NRV_Error – rised if fname does not exist