Skip to content
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

parse_savename does not properly identify the prefix when the first key=value pair's key contains "_" #346

Open
liuyxpp opened this issue May 19, 2022 · 0 comments
Labels
bug Something isn't working savename Regarding creating "shorthand" names

Comments

@liuyxpp
Copy link

liuyxpp commented May 19, 2022

Describe the bug
A clear and concise description of what the bug is.

parse_savename can not correctly handle the case when the first key=value pair's key contains "_"

Minimal Working Example
Please provide a piece of code that leads to the bug you encounter.

julia> parse_savename("base_dir=._config=config_data_format=HDF5")
("base", Dict{String, Any}("config" => "config", "data_format" => "HDF5", "dir" => "."), "")

It is expected that "base" should not be prefix, but a part of the variable name base_dir.

If the code is runnable, it will help us identify the problem faster.

Please also provide the version of DrWatson you have installed and your Julia version.

DrWatson: v2.9.1
Julia: v1.7.2

@Datseris Datseris added bug Something isn't working savename Regarding creating "shorthand" names labels May 19, 2022
@Datseris Datseris changed the title parse_savename does not properly identify the prefix parse_savename does not properly identify the prefix when the first key=value pair's key contains "_" May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working savename Regarding creating "shorthand" names
Projects
None yet
Development

No branches or pull requests

2 participants