Skip to content

Path management #324

@FFroehlich

Description

@FFroehlich

When generating a petab.Problem from a yaml file, all files are automatically prefixed by the location of the yaml file. However when directly passing the corresponding dict (potentially after manipulation), it is no longer possible to specify a prefix and the only way for the import to work correctly is to os.chdir to the appropriate directory.

Straightforward to add a corresponding command line argument, but I guess it would be generally great to store a prefix path somewhere in the generated petab.Problem, as this would make it easier to reference files within the problem (not part of the current spec afaik, but it would be great to have in the future).

Opinions?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions