-
Notifications
You must be signed in to change notification settings - Fork 5
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
Using dictionary format under [meta.concat] fails #40
Comments
Diving into the code I guess the documentation can be misunderstood, I had a wishful thinking that a dict of lists is also valid. It is not right now, here my mod to file.py from line 440:
This seems to work though wellmap.show produces somewhat weird results but the data itself is parsed correctly and works well in my downstream analysis. |
Yeah, sorry that the documentation wasn't clear, but you're right that dicts-of-lists are not currently supported. If you want to make a PR, that would be great. Don't bother trying to make a more general recursive algorithm, though. I think that would undesirable for two reasons. First is that I want to reserve the dict-of-dicts and list-of-dicts forms for specifying more complicated concatenation options, should there ever be a need for any, similar to how This may go without saying, but be sure to include some tests as well. I imagine that the tests for this feature would belong in |
Thanks very much for pointing me towards the test system. I learn here (using pytest extensively myself but not at the magician level as you do). However I got stuck at actually running the tests. I could add a new case in test_config_from_toml.nt but pyproject.toml is not using poetry. While I am pretty happy with poetry (and pycharm), I can imagine reasons you prefer to keep things as they are. If so, please point me (or future contributors to wellmap) to some hints on how to run/add tests. Thank you. |
You should just need to run:
If you aren't used to using pytest from the command line, here's a command that only runs tests from the file
If either of these commands aren't working, can you tell me what you tried and what the output you're getting? |
Thanks for sharing and maintaining wellmap! I use it extensively but now face a new issue:
Documentation specifies:
"The paths can be specified either as a string, a list, or a dictionary. "
I have this in my TOML file:
Call to wellmap.load on this aggregator TOML file fails at
Did I miss here something or the documentation is not in line with the actual implementation?
Thanks for any hints on how to get this feature working!
The text was updated successfully, but these errors were encountered: