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

Type hints for NiBabel #54

Open
4 of 17 tasks
effigies opened this issue Jun 7, 2022 · 5 comments
Open
4 of 17 tasks

Type hints for NiBabel #54

effigies opened this issue Jun 7, 2022 · 5 comments

Comments

@effigies
Copy link
Contributor

effigies commented Jun 7, 2022

Title

Type hints for NiBabel

Short description and the goals for the OHBM BrainHack

Python has support for type annotations to help developers code more effectively by catching bugs via static analysis or making auto-complete suggestions. The more libraries that annotate their code with useful type hints, the more effective this assistance becomes.

The goal of this project is to annotate NiBabel to ease the development process for neuroimaging in Python and improve the reliability of code built on top of NiBabel. We will use mypy for static analysis and test out type hinting in VScode.

Link to the Project

https://github.com/nipy/nibabel/

Image for the OHBM brainhack website

https://nipy.org/nibabel/_static/reggie.png

Project lead

Chris Markiewicz (@effigies + Discord: Chris Markiewicz#5926)

Main Hub

Glasgow

Other Hub covered by the leaders

  • Glasgow
  • Asia / Pacific
  • Europe / Middle East / Africa
  • Americas

Skills

Minimum

  • Some experience with Python and numpy

Ideal

Recommended tutorials for new contributors

Good first issues

nipy/nibabel#1109

Twitter summary

The type-hints for NiBabel project aims to make neuroimaging in Python easier and less error-prone.

Short name for the Discord chat channel (~15 chars)

nibabel-typing

Please read and follow the OHBM Code of Conduct

  • I agree to follow the OHBM Code of Conduct during the hackathon
@djarecka
Copy link
Collaborator

Thank you for submitting the project! We have 35 projects right now, woohoo! But that means the projects pitches will have to be short. We will give you tomorrow 2 minutes to pitch your project, you can have one slide or no slides!
If you decide to use a slide, please include the link to the slide here.

And don't worry, you will still have more time to talk about your project during the BrainHack :-)

@effigies
Copy link
Contributor Author

Since I plan to use vscode to test out type annotations, I found this startup guide helpful: https://theproductiveengineer.net/how-to-set-up-vs-code-for-python/

@effigies
Copy link
Contributor Author

Poll: What nibabel components would you like to see type hints for?









@jdkent
Copy link
Contributor

jdkent commented Jun 16, 2022

accidentally clicked other... (no suggestion)

@HippocampusGirl
Copy link

Nifti1Header (if that's not included in Nifti1Image already). I can never remember all those functions :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants