By default ARTIQ saves data in the "results" subfolder under the working directory that artiq_master is called at. Is there an argument that can be used to change the data saving directory?

We edited the artiq_master.py file in our ARTIQ fork to save data in arbitrary locations, but I am wondering if vanilla ARTIQ supports or should support this.

Why do you need this? Is changing the current directory before running the master not good enough? The general idea is the current directory is the "home folder" for your ARTIQ instance, with the device and dataset DBs and the results all in one place.

    sb10q Is changing the current directory before running the master not good enough?

    The most important reason for us is that we want to save data in a folder structure that groups data by names of different control computers, e.g.,

    • data
      • computer_1_data
        • artiq_data
        • other_data (for example, data manually recorded)
      • computer_2_data
        • artiq_data
        • other_data
      • ...

    The root "data" folder is shared between different computers with tools such as NAS or Google Drive. ARTIQ data are saved in the corresponding "artiq_data" folder of each of the computers. We can in principle run artiq_master from the "artiq_data" directory, but that creates one additional folder that we don't need in our data saving structure, and also stores the device_db.py and other log files on the NAS which we might not want.

    On the other hand, since artiq_master supports using user-defined paths for device_db, dataset_db, repository, and log files, shouldn't it support saving data files in user-defined directory too?

    @sb10q just want to follow up on this issue. Do you think this issue worth discussion in the artiq repo? I can also prepare a PR for adding an argument in artiq_master to save data to another location.

    4 years later

    Is there any update with regards to this functionality? It would be really great to be able to specify a directory to save data to. Also if we could add a file name prefix for better organization, that would be nice. Organizing data by timestamps alone isn't really all that helpful.