aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-06-25 11:56:36 +0200
committerThomas White <taw@physics.org>2024-06-25 11:56:36 +0200
commitfa126bda965bb99f6a3d15b0da2aa6c42a81a4fc (patch)
tree1172d3fb300224c179ae04383ece27e78e13c501
parent407215ad190dcdfb8f7263acbbaa725d19a667d1 (diff)
Add julia/stream_read.jl
-rw-r--r--julia/stream_read.jl9
1 files changed, 9 insertions, 0 deletions
diff --git a/julia/stream_read.jl b/julia/stream_read.jl
new file mode 100644
index 00000000..32c53f80
--- /dev/null
+++ b/julia/stream_read.jl
@@ -0,0 +1,9 @@
+using CrystFEL
+
+let st = Stream("input.stream", "r")
+ n = 0
+ for (cr,reflections) in allcrystals(st)
+ n += 1
+ end
+ println("Read ", n, " chunks")
+end