<commit_before>Driver code for the UW TRHPH instrument
=======================================

Main documentation page: https://confluence.oceanobservatories.org/display/CIDev/UW+TRHPH

Some development notes:

2012-04-21,24:
Adjustments to start aligning with Edward's refactoring via Steve's
sfoley/mmaster branch:
- DriverAnnouncement is gone so removed references to it
- DriverChannel is gone so removed references to it
- Others agreed with Steve.
- Committing to sfoley/master.
- All TRHPH code is at least not causing errors. As before, most tests are
  dependent on the UW_TRHPH environment variable, with test_trhph_client.py
  now passing OK, and the others being still skipped while the alignment
  is completed.

2012-04-05:
- Systematic BARS->TRHPH related renamings.
- Simulator updated.
- Documentation updates almost complete, seeUW+TRHPH confluence page
- All tests OK with both real instrument and simulator as before, see the
- This version tagged: "0.1.2"


-----------------------------------------------------------------------------
The rest of this document uses "BARS" as the main term for the instrument.

2012-04-05:
- Completed all changes to align the driver code with the new instrument
  program TRHPH Version 1.2 - Last Revision: Mar. 27, 2012.
  Only pending updates are on the simulator.

- As shown below, *all* tests are OK with the real instrument. At this point
  I'm committing the current state and tagging it with "0.1.1". Then, to avoid
  potential confusion with the BARS vs. TRHPH terminology, I'll be doing a
  systematic renaming from "bars" to "trhph" everywhere in the code, expect
  where specifically referring to the BARS instrument. That will be tagged
  "0.1.2".

- Removed all system clock related functionality:
    bars.py: all related definitions -> removed
    BarsClient.get_system_clock -> removed
    BarsClient.set_system_clock -> removed
    test_bars_client.test_40_get_system_clock -> removed
    test_bars_client.test_45_set_system_clock -> removed
    test_basic.py: all related tests -> removed

- Tests:
  NOTE: Now the "toggle" tests are NOT skipped any more for the real<commit_msg>TRHPH simulator now implemented using greenlets to facilitate integration   with the rest of the pyon ecosystem. This is particularly important when   the simulator is launched as part of the test setup (in concrete when   indicating the environment variable UW_BARS=embsimulator, eg:   $ UW_TRHPH=embsimulator bin/nosetests -v ion/services/mi/drivers/uw_trhph/test/test_trhph_client.py<commit_after>Driver code for the UW TRHPH instrument
=======================================

Main documentation page: https://confluence.oceanobservatories.org/display/CIDev/UW+TRHPH

Some development notes:

2012-04-24:
- TRHPH simulator now implemented using greenlets to facilitate integration
  with the rest of the pyon ecosystem. This is particularly important when
  the simulator is launched as part of the test setup (in concrete when
  indicating the environment variable UW_BARS="embsimulator", eg:
  $ UW_TRHPH="embsimulator" bin/nosetests -v ion/services/mi/drivers/uw_trhph/test/test_trhph_client.py

2012-04-21,24:
Adjustments to start aligning with Edward's refactoring via Steve's
sfoley/mmaster branch:
- DriverAnnouncement is gone so removed references to it
- DriverChannel is gone so removed references to it
- Others agreed with Steve.
- Committing to sfoley/master.
- All TRHPH code is at least not causing errors. As before, most tests are
  dependent on the UW_TRHPH environment variable, with test_trhph_client.py
  now passing OK, and the others being still skipped while the alignment
  is completed.

2012-04-05:
- Systematic BARS->TRHPH related renamings.
- Simulator updated.
- Documentation updates almost complete, see UW+TRHPH confluence page
- All tests OK with both real instrument and simulator as before
- This version tagged: "0.1.2"


-----------------------------------------------------------------------------
The rest of this document uses "BARS" as the main term for the instrument.

2012-04-05:
- Completed all changes to align the driver code with the new instrument
  program TRHPH Version 1.2 - Last Revision: Mar. 27, 2012.
  Only pending updates are on the simulator.

- As shown below, *all* tests are OK with the real instrument. At this point
  I'm committing the current state and tagging it with "0.1.1". Then, to avoid
  potential confusion with the BARS vs. TRHPH terminology, I'll be doing a
  systematic renaming from "bars" to "trhph" everywhere in the code, expect
  where specifically referring to the BARS instrument. That will be tagged
  "0.1.2".

- Removed all system clock related functionality:
    bars.py: all related definitions -> removed
    BarsClient.get_system_clock -> removed
    BarsClient.set_system_clock -> removed
    test_bars_client.test_40_get_system_clock -> removed
    test_bars_client.test_45_set_system_clock -> removed
    test_basic.py: all related tests -> removed

- Tests:
  NOTE: Now the "toggle" tests are NOT skipped any more for the real
{'fraction_non_alphanumeric': 0.10175162369612281, 'fraction_numerical': 0.020074788427474906, 'mean_word_length': 3.6581118240146653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7630055', 'n_tokens_mistral': 1495, 'n_tokens_neox': 1380, 'n_words': 604}