-
Notifications
You must be signed in to change notification settings - Fork 33
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
Remove auto-print upon BrainGlobeAtlas construction #89
Conversation
You should be able to use the atlas = BrainGlobeAtlas("allen_mouse_25um", print_authors=False) Although I agree that it is a bit annoying, and maybe |
I had opted for that in a maybe overly scrupulous attempt to make sure brainglobe does not “steal” credits from the atlas authors. I agree it is not a very kosher choice, and I let the argument for that reason; but happy to change if you guys think so, and we can change it back if we have any complaints. Happy to merge if you decide so, just remove the argument as well in that case maybe |
|
@FedeClaudi what do you think? I think I'd rather keep this functionality, but just make it obvious to users that they can suppress it if they like. I agree with @vigji that we should always try to "divert" credit back to the original atlas authors where possible. |
I think as long as we make it abundantly clear that we haven't 'made' the atlases in the docs there's no need to have the authors name printed out everytime a class is used, I'm sure most people will suppress it anyways and it can be annoying for people building software using the API. We say it everywhere, including the paper, that it's an API built on top of other people's data and the atlases come with metadata clearly stating that. So I'd switch it off by default. |
Cool, so we keep the method, but turn it off by default? Then at some point make it fancy? |
I'd say so... happy to fancy it up, that kind of stuff relaxes me for some reason. |
Mmm I would generally oppose aesthetical dependencies, rich is useful for the bar and tables but I would still keep things light - the less moving parts, the better! |
@FedeClaudi can it be done just with |
it can it can, it'd be just a matter of replicating the functionality provided by the Report class, which is fine |
Another aspect to address here is that this output is being place in the Especially since we're discussing adding more libraries on top of the print, my suggestion would be to implement both the
|
agreed, When I get around doing the fancy metadata printout stuff I will do this as well, thanks Nick |
So, merge this set of changes, save |
I can probably just add things here, I will be able to do this later this week. |
Sorry @nickdelgrosso I hadn't noticed that this PR was coming from a forked version of the repo, it might be easier if we merge this and then I'll open a new one for the printing stuff. Is that ok @adamltyson and @vigji ? |
All good, thanks @FedeClaudi & @nickdelgrosso ! |
Yup! |
Hi,
This is a very minor change request, so no worries if it's ignored, but I noticed that BrainGlobeAtlas() prints itself when it is initialized. This is different than the convention, and ends up adding unnecessary output to the standard output during normal operations. For my use case (wrapping BrainGlobeAtlas in an application), it would mean suppressing the bg-atlasapi output in order to have control over my application's output. It also leads to a double-printing when someone explicitly requests output in a jupyter notebook cell, as in:
The pull request just removes the extra print statement in BrainGlobeAtlas.init(), leaving the user to decide if they want to see the output themselves.
Best wishes,
Nick