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

ni / nimi-python / 2851
91%

Build:
DEFAULT BRANCH: master
Ran 18 Dec 2017 08:39PM UTC
Jobs 6
Files 17
Run time 8min
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

pending completion
2851

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

1587 of 1784 relevant lines covered (88.96%)

5.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 2851.1 18 Dec 2017 08:39PM UTC 0
88.68
Travis Job 2851.1
2 2851.2 18 Dec 2017 08:40PM UTC 0
88.68
Travis Job 2851.2
3 2851.3 18 Dec 2017 08:42PM UTC 0
88.68
Travis Job 2851.3
4 2851.4 18 Dec 2017 08:42PM UTC 0
88.85
Travis Job 2851.4
5 2851.5 18 Dec 2017 08:47PM UTC 0
88.68
Travis Job 2851.5
6 2851.6 18 Dec 2017 08:47PM UTC 0
88.85
Travis Job 2851.6
Source Files on build 2851
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2851
  • 9126f0c3 on github
  • Prev Build on master (#2835)
  • Next Build on master (#2852)
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