-
Notifications
You must be signed in to change notification settings - Fork 3
Description
One thing I really like about pyiron_base
is that I don't need to worry much about the directory structure, i.e. I simply write the files in self.working_directory
, and afterwards when the job is erased there is no orphaned job directory. So I would like to suggest a couple of things here purely from the user perspective first, without distinguishing what should be offered by us and what the user should provide.
Let's assume I have a software tool that requires input files and exports output files. That means there's an input writer, and an output parser. Since I'm interested in the input parameters that I define, and the output parameters that I choose, I'm not really interested in the actual files, but just in case I would like to be able to look into them. That means I would need the following features:
- A unique job folder should be generated for each job.
- The job folder should in principle follow the same fate as the job itself, meaning it shouldn't be orphaned when the job is erased
- It should lie inside the workflow folder, which is currently not automatically generated until
save
is called (and alsomkdir
is hard coded if I remember correctly) - I would like the WfMS to compress everything, since I usually don't need the files (
compress
&decompress
frompyiron_base
)
I'm getting the feeling that the right moment to create the workflow folder is maybe when as_path
is called, and if it remains empty we can potentially erase it again after the run.
I guess I'm not totally done with this part, but I'm gonna come back to this and add more comments if something comes to my mind.