AFQ.utils.path#

Module Contents#

Functions#

write_json(fname, data)

Write data to JSON file.

read_json(fname)

Read data from a JSON file.

drop_extension(path)

apply_cmd_to_afq_derivs(derivs_dir, base_fname[, cmd, ...])

AFQ.utils.path.write_json(fname, data)[source]#

Write data to JSON file.

Parameters
fnamestr

Full path to the file to write.

datadict

A dict containing the data to write.

Returns
None
AFQ.utils.path.read_json(fname)[source]#

Read data from a JSON file.

Parameters
fnamestr

Full path to the data-containing file

Returns
dict
AFQ.utils.path.drop_extension(path)[source]#
AFQ.utils.path.apply_cmd_to_afq_derivs(derivs_dir, base_fname, cmd='rm', exception_file_names=[], suffix='', dependent_on=None)[source]#