File and path management #53
deltamarnix
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem statement
Any component, many blocks, variables, and even parts of variables (e.g. array layers) can be associated with input files (see MF6IO appendix for more details on open/close)
Implementation
Looking into
MFFileMgmt
. There are only a couple of functions in this class that are supposed to be public.copy_files()
. Only works whenlast_loaded_sim_path
is notNone
.get_model_path()
: Joins sim path with relative model path. Iflast_loaded_path
, it will return those paths.get_sim_path()
: Iflast_loaded_path
, it will return that path.The rest of the functions are for internal use only. Most functions are likely to be used in a static manner, but this last loaded path seems to make everything so much more complicated. I am wondering if we could redo the functionality and leave out anything that has to do with last loaded paths. Just give a destination if you want to copy something, for example.
Beta Was this translation helpful? Give feedback.
All reactions