Skip to content

Conversation

@texasaggie97-zz
Copy link
Contributor

  • This contribution adheres to CONTRIBUTING.md.
  • I've updated CHANGELOG.md if applicable.
  • I've added tests applicable for this pull request

What does this Pull Request accomplish?

List issues fixed by this Pull Request below, if any.

What testing has been done?

@codecov
Copy link

codecov bot commented Feb 6, 2020

Codecov Report

Merging #1251 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1251   +/-   ##
=======================================
  Coverage   91.92%   91.92%           
=======================================
  Files          20       20           
  Lines        3655     3655           
=======================================
  Hits         3360     3360           
  Misses        295      295           
Flag Coverage Δ
#codegenunittests 88.24% <0.00%> (ø)
#nifakeunittests 96.40% <0.00%> (ø)
#nimodinstunittests 95.37% <0.00%> (ø)
#nitclkunittests 95.45% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3511c86...3511c86. Read the comment docs.

sbethur and others added 28 commits April 22, 2020 16:27
#1427)

- Change "list" to "basic sequence types"
- Fix info related to types and "represented objects" in some parameter docstrings. The format used in nimi-python is `param_name (type): Info about the object that this parameter represents`. In certain places, the type and represented object was flipped.
- Adds nidigital system test test_clock_generator_abort
- Adds nidigital system test test_clock_generator_generate_clock
- Adds nidigital system test test_frequency_counter_measure_frequency
* Adds nidigital system test `test_create_get_delete_time_sets`
  - Covers `create_time_set`, `get_time_set_name`, `delete_all_time_sets`
* Adds nidigital system test `test_configure_get_time_set_period`
  - Covers `configure_time_set_period`, `get_time_set_period`
* Adds nidigital system test `test_configure_get_time_set_drive_format`
  - Covers `configure_time_set_drive_format`, `get_time_set_drive_format`
* Adds nidigital system test `test_configure_get_time_set_edge`
  - Covers `configure_time_set_edge`, `get_time_set_edge`
* Adds nidigital system test `test_configure_time_set_drive_edges`
* Adds nidigital system test `test_configure_time_set_compare_edges_strobe`
* Adds nidigital system test `test_configure_get_time_set_edge_multiplier`
  - Covers `configure_time_set_edge_multiplier`, `get_time_set_edge_multiplier`
* Adds nidigital system test `test_configure_time_set_drive_edges2x`
* Adds nidigital system test `test_configure_time_set_compare_edges_strobe2x`
* `load_pin_map`
  - Already covered by `test_get_pin_results_pin_information`
* `disable_sites`
  - New test `test_disable_sites`
* `enable_sites`
  - New test `test_enable_sites`
* `is_site_enabled`
  - See `test_enable_sites`
  - See `test_disable_sites`
* Adds line to `test_get_pattern_pin_names` documenting coverage of `load_pattern`
* Adds test `test_load_get_unload_patterns`
  - Covers `load_pattern` slightly differently from the other test
  - Covers `get_pattern_name`
  - Covers `unload_all_patterns`
* Adds test `test_configure_pattern_burst_sites`
* Updates all nidigital tests except for one to use nidigital.<enum_name> to access enums.
  - Update of the other test was blocked by #1426.  A TODO was created to update it, when possible.
…1428)

Improves nidigital system test documentation of what methods are tested.
* Documents coverage of `initiate` in `test_configure_pattern_burst_sites` and corrects api usage
* Adds test `test_commit`
* Adds test `test_initiate_context_manager_and_wait_until_done`
  - Covers context manager for `initiate`
  - Covers `wait_until_done`
  - Covers `is_done`
* Adds test `test_abort`
* Adds test `test_abort_keep_alive`
A new metadata key called `uses_hightime` will be added for #1368. This
change will make the key names consistent.
…_qualname__` (#1435)

* Update HistoryRAMCycleInformation.__repr__ to use `__module__` and `__qualname__`

Best practice for implementing `__repr__` for custom types is to use
`__module__` and `__qualname__`.

By including `__module__` in `__repr__`, `eval(repr(HistoryRAMCycleInformation()))`
can be called by importing nidigital as `import nidigital`; which is
consistent with recommended import style of nimi-python.

If this change is accepted, `__repr__` for private and internal types
(including nifake) will be changed in a separate PR. `__repr__` for public
types in other modules will be done in 2.0 Source Breakers milestone.

* Update CHANGELOG
…1431)

* Adds test `test_create_source_waveform_serial`
* Adds test `test_create_source_waveform_from_file_tdms`
* Adds test `test_write_source_waveform_data_from_file_tdms`
* Adds test `test_create_capture_waveform_serial`
* Adds test `test_create_capture_waveform_from_file_digicapture`
* Adds nidigital system test `test_close`
* Adds nidigital system test `test_get_fail_count`
* Adds nidigital system test `test_send_software_edge_trigger`
…es (#1439)

* Add nidigital system tests for channels and sites repeated capabilities

- Add test for channels repeated capability
- Add test for sites repeated capability
- Add test for sites/pins chained repeated capability

* In test_sites_rep_cap(), assert sites are enabled before disabling them
flake8 on TravisCI got updated recently from 3.7.9 to 3.8.1. On the new version, checks for `'...'.format(...)` has become stricter.
`datetime` will be replaced by `hightime` across all nimi-python modules in a separate PR.
@sbethur
Copy link
Contributor

sbethur commented May 29, 2020

The new version of this PR is #1251.

@sbethur sbethur closed this May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants