-
Notifications
You must be signed in to change notification settings - Fork 266
[utils] do not copy nix_name annotation to different object types #1016
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
[utils] do not copy nix_name annotation to different object types #1016
Conversation
|
Hi Julia. Could it be possible instead to make "annotation cleaner" inside NixIO before writting to remove annotation that have the wrong "type" ? |
Did you maybe forget a
Yes if the user manually messes with the nix specific annotations, then the resulting nix file will be inconsistent, removing annotations of the wrong type wouldn't prevent this...
For now I will refactor the cleaning of the annotations into a separate utility function, then maybe when updating the nixio we can incorporate it there each time when writing to disk. |
Yes as you guess I gorgot the negation....
Ok. |
|
Hello @JuliaSprenger! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-07-09 12:33:45 UTC |
I did the refactoring in this module. @samuelgarcia Does this look better to you? |
|
This lookfs good. |
solves #936