• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ni / nimi-python / 2851 / 1
91%
master: 91%

Build:
DEFAULT BRANCH: master
Ran 18 Dec 2017 08:39PM UTC
Files 17
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2017 08:35PM UTC coverage: 88.677% (-0.2%) from 88.839%
2851.1

push

travis-ci

web-flow
Add high-performance nidmm.Session.fetch_waveform_into that uses numpy array (#697)

* Move default function template into separate mako file

* Include default function template from separate file

* Use default function template for nimodinst

* Add default template name if if not already defined

* Use template per function

* Delete docs/conf.py when make clean

* Wrong PR

* Enable FetchBinary8 with numpy support

* numpy based template

* Helper function to get numpy type

* Add numpy calculated metadata

* Add numpy information

* Handle numpy when allocating ctype

* Handle numpy for output parameters

* Update tests

* Update generated files

* Always use helper.get_ctype_variable_declaration_snippet() rather than hard-coding this in the method template.

* Update generated

* Improve get_ctype_variable_declaration_snippet signature

* Add ViInt8 to visatype.py, needed by niscope

* Renamed and improved ReadMultipoint function

Ahead of numpy work.

* Update generated

* Add TODO file for keeping track of remaining numpy tasks

* Add ability to generate a "numpy" flavor of a method that returns a waveform

* Matcher for numpy.array

* Add numpy fetch waveform function to NI-FAKE

* Test for fetch_binary8_numpy

* NI-FAKE unit tests now need numpy installed

* Update generated

* Have both numpy and default versions of a method

* Update generated

* New ParameterUsageOptions for "into" methods

* Support filtering on SESSION_NUMPY_INTO_METHOD_DECLARATION

* Change numpy method template to use "into" form

Also added assertions and removed dead code.

* Method template for generating both default and _into flavor

* Support generation of numpy "_into" methods

* Update unit tests for numpy _into

* Update TODOs

* Update TODOs

* Update generated

* Retrofit system test for fetch_binary8_into (untested)

* Fix import order (PEP8)

* Fix test mistakes.

* Change type of matcher, was failing in pypy3-test

* Remove NumpyArrayMatcher, not used after all.

* Add numpy as a dependency for niscope_system_tests

* Add dependency system_tests: numpy

* Fix type for waveform!

* Support multiple templates for a single function

* Use ability to specify multiple templates through metadata rather than a template that includes multiple templates

* fix test expectation

* update TODOs

* Update generated

* Small metadata fix to NI-FAKE

* Break get_ctype_variable_declaration_snippet() into two for cleaner code

* DRY finding module_name

* Move logic around for clarity

* More cleanup / refactoring of get_ctype_variable_declaration_snippet()

* further simplification

* update generated

* Clean up documentation, further reordering for get_ctype_variable_declaration_snippet()

Will redo numbering in separate commit, in order to not affect
generated code.

* Improve wording and update

* docstring should not start with space

* list out nifgen functions

* Rename ArrayInputFunction to WriteWaveform to make it clear it will apply to numpy

* Update generated

* Update TODOs

* Update generated

* Create hand-coded nifgen.Session.write_waveform method

Under the hood, this can dispatch to _write_waveform_numpy,
_write_binary16_waveform_numpy, or _write_waveform based on the object
passed in as data.

* Update generated

* E124 closing bracket does not match visual indentation

* Merge branch 'master' into api/numpy_write

# Conflicts:
#	docs/nifgen/functions.rst
#	docs/nifgen/session.rst
#	generated/nifake/session.py
#	generated/nifake/unit_tests/test_session.py
#	generated/nifgen/session.py
#	src/nifake/unit_tests/test_session.py
#	src/nifgen/metadata/functions_addon.py
#	src/nifgen/system_tests/test_system_nifgen.py

* Update generated

* Single write_waveform method will dispatch to the appropriate flavor, including numpy array ones.

* Update generated

* Update TODOs

* Update with changes, and improve markdown

* flake8 joy

* nifgen.Session.create_method dispatches based on waveform type including numpy

Works with:

* List of float
* numpy array of float64
* numpy array of int16

* Update generated

* Update numpy related TODOs

* flake8 fun

* Update changelog

* bit of cleanup / bad merge

* Cleaned up TODOs

* Improve import of numpy note

* add back _create_waveform_f64 (not numpy flavor)

* Add notes to TODO

* Why specify doc template if no doc will be generated?

* Generate fetch_waveform_into for numpy use

* Update generated

* Update with fetch_waveform_into info

* fixes

* call correct function

* add missing assertion

* Get all tests passing

* only check condition once

1582 of 1784 relevant lines covered (88.68%)

0.89 hits per line

Source Files on job 2851.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2851
  • Travis Job 2851.1
  • 9126f0c3 on github
  • Prev Job for on master (#2835.6)
  • Next Job for on master (#2852.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc