-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CircuitConfig.expanded_json does not expand relative paths #152
Comments
Hello,
In this case, after replacing, the paths would be still relative, since the manifest variables are as well. |
Yeah, I asked @joni-herttuainen to open this in case we wanted to discuss whether it should return an absolute path or not. I can see the benefits for both, and the downsides; I'm not sure what the best solution is though. Having an extra argument to However, pushing resolution down the library consumer is annoying - I doubt that the How are you handling this @NadirRoGue? |
I have prepared the fix for this as well in case its decided to be commited. I only have to modify the I can open a PR if needed. |
Wow, that's cool; if you already have something, I wouldn't mind seeing it - if you could push a branch, that would be helpful. Doesn't have to be polished or anything, just to get a sense of how it would work. |
Here is the branch: https://github.com/BlueBrain/libsonata/tree/config_file_not_expanding |
E.g., with a config file having
nodes_file
andedges_file
defined as follows:I can access the data in the the files but when getting the expanded_json but I don't have the full paths as I would've expected:
'{"networks":{"edges":[{"edges_file":"edges.h5",...}],"nodes":[{"nodes_file":"./nodes.h5",...}]},"version":2}'
The text was updated successfully, but these errors were encountered: