pymeasure / pyleco

Python implementation of the Laboratory Experiment COntrol (LECO) protocol
MIT License
9 stars 3 forks source link

Development: Current state #10

Closed BenediktBurger closed 8 months ago

BenediktBurger commented 1 year ago

Instead of transfer-layer in #1 , I'm going to use the development branch as the running edge branch.

The stable-development branch is going to be a moving tag for stable checkpoints along that development, such that you can stay on stable-development to follow the development, but with a (reasonably) stable environment.

Instead of developing pyleco in my lab software and copying unregularly to transfer-layer, as I did until now, I'm going to work directly in the development branch until most features are in main.

Btw. The readme contains a useful summary of the classes and their purpose.

github-actions[bot] commented 1 year ago

PyLECO Coverage

Coverage Report
FileStmtsMissCoverMissing
pyleco
   test.py61787%39, 42, 66–67, 70, 96, 113, 122–>124
pyleco/actors
   actor.py1253076%101–102, 118–120, 124, 128, 132, 140–141, 148, 156, 159–163, 170, 173, 178, 182, 185, 188, 207–208, 214, 218, 225, 237–238
   motorController.py1021020%2–170
pyleco/coordinators
   proxy_server.py715915%58, 72–96, 126–131, 135–177
pyleco/directors
   coordinator_director.py15380%46, 50, 54
   data_logger_director.py21210%25–72
   director.py97987%62–63, 73–>exit, 98, 109, 130, 139–141, 151
   motor_director.py94940%25–197
   starter_director.py30668%50–>52, 60–62, 70–>72, 80–82, 91–>93
   transparent_director.py27270%25–95
pyleco/management
   data_logger.py25616629%28–33, 42–44, 47–50, 140–141, 144, 147–150, 158–159, 161, 165–168, 172–200, 205–210, 220–226, 234–247, 250–255, 264–267, 270–271, 274–277, 289–314, 318–325, 329–346, 350–376, 380, 384, 388–389, 393–411
   data_logger_postgresql.py51510%25–95
   starter.py1857854%50–53, 67, 69, 72–73, 125–126, 130–131, 149–164, 168–169, 178–179, 185, 188–190, 196–198, 209–210, 212, 218, 222–223, 226–228, 231–232, 236–237, 240–241, 245, 257, 265–267, 275, 283–287, 291–311
pyleco/management/test_tasks
   test_task.py24775%15, 18, 22, 26, 30, 33, 40
pyleco/utils
   communicator.py1422183%79–>81, 94, 109–110, 118, 128–131, 153, 175–>178, 189–190, 194, 203–209, 227, 240, 243, 247
   coordinator_utils.py308498%80, 175–176, 309, 355–>exit, 428–>427, 448–>exit
   extended_message_handler.py774039%62–63, 71–87, 90, 94–98, 101–108, 112–116, 119–124, 128–129
   extended_publisher.py21210%25–59
   listener.py1454264%77, 90, 94, 98, 102, 108–>exit, 115, 133–134, 161–>163, 179–183, 187–191, 195, 199, 202, 205, 229–>exit, 236, 280–282, 287–290, 294–297, 301–311
   message_handler.py1971787%85–>88, 90–>89, 137–>139, 149–150, 185–188, 249–250, 260–261, 264–267, 273, 301, 326
   parser.py201132%54–65
   pipe_handler.py1332379%104–>101, 142–143, 164, 166, 168, 171–176, 190–191, 214–>216, 230–232, 235–237, 240, 243–245
   publisher.py632259%68–70, 85, 90, 96, 105–111, 118–124, 128–130, 136–139
   qt_listener.py25250%25–79
   timers.py16570%43, 53–54, 59–60
   zmq_log_handler.py401162%63–64, 66–68, 70–72, 81–82, 85
TOTAL274390264% 

Coverage Summary

Tests Skipped Failures Errors Time
350 4 :zzz: 0 :x: 0 :fire: 13.760s :stopwatch:
github-actions[bot] commented 1 year ago

PyLECO Coverage

Coverage Report
FileStmtsMissCoverMissing
pyleco
   test.py1141088%39, 42, 74, 80, 99, 104, 107, 112, 115, 162, 171–>173
pyleco/actors
   actor.py131994%147, 154, 176, 179, 184, 188, 191, 194, 226
pyleco/coordinators
   coordinator.py2411494%467–487
   proxy_server.py715914%58, 72–96, 126–131, 135–177
pyleco/directors
   director.py981881%63–64, 90–95, 100, 121–122, 126, 135–137, 147, 184–185
   starter_director.py30088%51–>53, 62–>64, 73–>75, 84–>86, 95–>97
   transparent_director.py41290%62–>64, 73, 99
pyleco/management
   data_logger.py2221891%46, 213, 285–>exit, 298–>300, 314–319, 370–383
   starter.py1805567%50–51, 65, 67, 70–71, 128–129, 151, 154–162, 166–167, 176–177, 183, 186–188, 194–196, 207–208, 210, 216, 220–221, 224–226, 229–230, 238–239, 265–267, 275, 291–306
pyleco/management/test_tasks
   test_task.py24775%15, 18, 22, 26, 30, 33, 40
pyleco/utils
   communicator.py1492284%94, 113–114, 132–135, 157–>159, 189–>192, 203–204, 208, 219–225, 231–233, 245, 258, 261, 265
   coordinator_utils.py312598%79, 86, 181–182, 316, 363–>exit, 436–>435, 456–>exit
   extended_message_handler.py721772%48, 75–76, 83–85, 89, 92, 98, 119–125, 129, 137
   listener.py72787%82, 121–122, 126, 128, 140, 145–>exit, 152
   parser.py20093%54–>56, 58–>60
   pipe_handler.py1821094%141–>143, 147, 164, 175, 178, 208–209, 214, 250–251, 290
   publisher.py361644%38, 43–55, 94, 97–99, 103
   qt_listener.py35343%27–95
   republisher.py35350%25–97
   timers.py16480%53–54, 59–60
   zmq_log_handler.py35481%63, 65–>67, 69–71
TOTAL265734685% 

Coverage Summary

Tests Skipped Failures Errors Time
577 5 :zzz: 0 :x: 0 :fire: 14.770s :stopwatch:
BenediktBurger commented 11 months ago

I added a LECO_ASSUMPTIONS file, which contains the assumptions (mostly based on ideas proposed in issues/pull requests) I used to write the code.

BenediktBurger commented 10 months ago

I added the alpha tag to LECO and reference that LECO protocol version in this changelog.