Contributions to nidaqmx are welcome from all!
nidaqmx is managed via git, with the canonical upstream repository hosted on GitHub.
nidaqmx follows a pull-request model for development. If you wish to contribute, you will need to create a GitHub account, fork this project, push a branch with your changes to your project, and then submit a pull request.
See GitHub's official documentation for more details.
To contribute to this project, it is recommended that you follow these steps:
- Fork the repository on GitHub.
- Run the unit tests on your system (see Testing section). At this point, if any tests fail, do not begin development. Try to investigate these failures. If you're unable to do so, report an issue through our GitHub issues page.
- Write new tests that demonstrate your bug or feature. Ensure that these new tests fail.
- Make your change.
- Run all the unit tests again (which include the tests you just added), and confirm that they all pass.
- Send a GitHub Pull Request to the main repository's master branch. GitHub Pull Requests are the expected method of code collaboration on this project.
In order to be able to run the nidaqmx unit tests, your setup should meet the following minimum requirements:
- Setup has a machine with NI-DAQmx or the NI-DAQmx Runtime installed.
- Machine has a supported version of CPython or PyPy installed.
- Machine has an X-Series DAQ device connected to it (we ran the tests using a PCIe-6363 or a USB-6351).
Before running any unit tests, an NI MAX configuration needs be imported. The
MAX configuration simply contains some custom scales used during testing. The
MAX configuration file is located at
nidaqmx\tests\max_config\nidaqmxMaxConfig.nce. Refer to this
KB article
for details on how to import a MAX Configuration.
To run the nidaqmx unit tests in a specific version of Python, run the following command in the root of the distribution:
$ <Python executable> setup.py test
To run the unit tests in all Python interpreters supported by nidaqmx, run the following commands in the root of the distribution:
$ pip install tox $ tox
This requires you to have all the Python interpreters supported by nidaqmx installed on your machine.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
- The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
- The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
- The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
- I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
(taken from developercertificate.org)
See LICENSE for details about how nidaqmx is licensed.