first_time_user
tit.project_init.first_time_user ¶
get_status_file_path ¶
Get the path to the status file in the project directory. The file will be stored in /mnt/PROJECT_DIR_NAME/code/ti-toolbox/config/project_status.json
Source code in tit/project_init/first_time_user.py
initialize_project_status ¶
Initialize the project status file with default values. This is called when a new project is created or when the status file is missing. Creates the BIDS-compliant directory structure and initializes project tracking.
Source code in tit/project_init/first_time_user.py
get_project_status ¶
Get the current project status, initializing if necessary. Returns the status data dictionary or None if initialization fails.
Source code in tit/project_init/first_time_user.py
update_project_status ¶
Update specific fields in the project status file. Args: updates (dict): Dictionary containing the fields to update Returns: bool: True if update was successful, False otherwise
Source code in tit/project_init/first_time_user.py
check_first_time_user ¶
Check if this is the first time the user is running the GUI. Returns True if it's the first time, False otherwise.
Source code in tit/project_init/first_time_user.py
mark_user_as_experienced ¶
Mark the user as experienced by updating the show_welcome preference. This is called when the user checks "Don't show this message again".
Source code in tit/project_init/first_time_user.py
show_welcome_message ¶
Show a welcome message to first-time users using PyQt5. The message includes a checkbox to prevent showing it again.
Source code in tit/project_init/first_time_user.py
setup_project_example_data ¶
Set up example data for a new project if applicable. This function integrates with the example_data_manager module.
Source code in tit/project_init/first_time_user.py
assess_user_status ¶
Main function to assess user status and show welcome message if needed. This is called when the GUI starts up. Also handles example data setup for new projects.