Skip to content

Handling of directories #735

@samwaseda

Description

@samwaseda

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:

  1. A unique job folder should be generated for each job.
  2. 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
  3. It should lie inside the workflow folder, which is currently not automatically generated until save is called (and also mkdir is hard coded if I remember correctly)
  4. I would like the WfMS to compress everything, since I usually don't need the files (compress & decompress from pyiron_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions