-
Notifications
You must be signed in to change notification settings - Fork 44
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
Mapper method alias_of
extracts alias wrongly
#667
Comments
Hmmm, if this needs to be changed then presumably How does this relate to the test case here? (specifically line 31 vs 37, which seems to me like this is working as intended?) optimade-python-tools/tests/server/test_mappers.py Lines 22 to 39 in 790ab7d
|
I don't understand how that works. |
But maybe it's always been supposed to be the other way around? Hmmm.. The definition of real and alias confuses me. Along with the documentation descriptions. Especially when analyzing your test there. |
Okay, so I've just fixed this by using |
Yeah, sounds sensible.
Then we can keep the old function names as... aliases... for the new ones 🙃 |
Or is it the arbitrary of/for distinction that is the problem? In which case...
|
I like the latter more. But I still feel they are a bit wishy-washy. How about |
Or maybe use |
We also have to consider that non-OPTIMADE provider fields can be aliased so maybe need an even more general name... how about |
I like that! |
|
|
Hey @CasperWA, I'm going to self-assign and rename these functions as we discussed. |
In the following line:
optimade-python-tools/optimade/server/mappers/entries.py
Line 121 in 790ab7d
real, alias
needs to bealias, real
for thealias_of()
method to work.The text was updated successfully, but these errors were encountered: