-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f1d097
commit 4db1521
Showing
3 changed files
with
556 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# this is just to mock an analysis element. It effectively just relay's the | ||
# measured value here | ||
from tsuchinoko.utils.zmq_queue import Queue_analyze | ||
|
||
q = Queue_analyze() | ||
|
||
if __name__ == '__main__': | ||
while True: # The loop that waits for new instructions... | ||
|
||
data = q.get() # Get analysis command | ||
|
||
print("'Analyzing' data:", data) | ||
|
||
q.publish(data) # Send new analysis results to gpCAM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import numpy as np | ||
|
||
from tsuchinoko.examples.gi_tomo_phantom import projection_operator, l_x, n_sinograms, domain_maps, bilinear_sample | ||
from tsuchinoko.utils.zmq_queue import Queue_measure | ||
|
||
measure_queue = Queue_measure() | ||
|
||
|
||
|
||
if __name__ == "__main__": | ||
while True: # The loop that waits for new instructions... | ||
|
||
pos = measure_queue.get() # Get measurement command | ||
print('received:', pos) | ||
measurement = bilinear_sample(pos, domain_maps) | ||
print('sending:', measurement) | ||
measure_queue.publish(measurement) # Send new results for analysis |
Oops, something went wrong.