Effacer les filtres
Effacer les filtres

SPM12 CAT12 log files path

14 vues (au cours des 30 derniers jours)
Christopher Weise
Christopher Weise le 12 Juil 2023
Hello,
I've been running some preprocessing of cortical surface data with CAT12. I usually split this into separate processes, thus also getting separate log files.
Unfortunately, these keep piling up in my home directory and I haven't found the settings or config files in either SPM or CAT to have them stored in a designated directory.

Réponses (1)

Yash
Yash le 6 Sep 2023
It's important to keep your directory organized, especially when you're dealing with a lot of log files. However, the location where log files are stored can depend on how CAT12 is configured and where you execute your preprocessing. Here are a few suggestions on how you can potentially manage your log files better:
Use MATLAB's cd Command:
Before running your CAT12 preprocessing, you can use the MATLAB cd (change directory) command to change the current directory to the one where you want your log files to be stored. For example:
cd('/path/to/your/log_directory')
Make sure to replace '/path/to/your/log_directory' with the actual path to your desired log directory. Then, when CAT12 saves log files, they should go to this directory.
Redirect Output to a Log File:
When you run CAT12 from the command line or a script, you can redirect the output, including log messages, to a specific log file using the diary command. For example:
diary('/path/to/your/log_directory/cat12_log.txt');
% Run CAT12 processing here
diary off
This will capture all the output, including log messages, and save them to the specified log file.
Remember to replace '/path/to/your/log_directory' with the actual path to your desired log directory in all the above examples.
Also refer to the documentation below for more information
I hope this helps.
  1 commentaire
Christopher Weise
Christopher Weise le 8 Sep 2023
Thank you very much, I will try this!

Connectez-vous pour commenter.

Catégories

En savoir plus sur MRI dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by