-
Notifications
You must be signed in to change notification settings - Fork 1
/
experiment.pb.go
1648 lines (1466 loc) · 66.5 KB
/
experiment.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v3.19.4
// source: data-formats/file-formats/experiment.proto
package protos
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Experiment_MetaDataType int32
const (
Experiment_MT_FLOAT Experiment_MetaDataType = 0
Experiment_MT_INT Experiment_MetaDataType = 1
Experiment_MT_STRING Experiment_MetaDataType = 2
)
// Enum value maps for Experiment_MetaDataType.
var (
Experiment_MetaDataType_name = map[int32]string{
0: "MT_FLOAT",
1: "MT_INT",
2: "MT_STRING",
}
Experiment_MetaDataType_value = map[string]int32{
"MT_FLOAT": 0,
"MT_INT": 1,
"MT_STRING": 2,
}
)
func (x Experiment_MetaDataType) Enum() *Experiment_MetaDataType {
p := new(Experiment_MetaDataType)
*p = x
return p
}
func (x Experiment_MetaDataType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Experiment_MetaDataType) Descriptor() protoreflect.EnumDescriptor {
return file_data_formats_file_formats_experiment_proto_enumTypes[0].Descriptor()
}
func (Experiment_MetaDataType) Type() protoreflect.EnumType {
return &file_data_formats_file_formats_experiment_proto_enumTypes[0]
}
func (x Experiment_MetaDataType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Experiment_MetaDataType.Descriptor instead.
func (Experiment_MetaDataType) EnumDescriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 0}
}
type Experiment_Location_SpectrumCompression int32
const (
Experiment_Location_RAW Experiment_Location_SpectrumCompression = 0 // Storing raw data, so N*int32 in size
Experiment_Location_ZERO_RUN Experiment_Location_SpectrumCompression = 1 // 0's all have a count after them. Assumption is a lot of runs of 0's
Experiment_Location_RLE Experiment_Location_SpectrumCompression = 2 // Run length encoding, assumption is many numbers have long runs
)
// Enum value maps for Experiment_Location_SpectrumCompression.
var (
Experiment_Location_SpectrumCompression_name = map[int32]string{
0: "RAW",
1: "ZERO_RUN",
2: "RLE",
}
Experiment_Location_SpectrumCompression_value = map[string]int32{
"RAW": 0,
"ZERO_RUN": 1,
"RLE": 2,
}
)
func (x Experiment_Location_SpectrumCompression) Enum() *Experiment_Location_SpectrumCompression {
p := new(Experiment_Location_SpectrumCompression)
*p = x
return p
}
func (x Experiment_Location_SpectrumCompression) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Experiment_Location_SpectrumCompression) Descriptor() protoreflect.EnumDescriptor {
return file_data_formats_file_formats_experiment_proto_enumTypes[1].Descriptor()
}
func (Experiment_Location_SpectrumCompression) Type() protoreflect.EnumType {
return &file_data_formats_file_formats_experiment_proto_enumTypes[1]
}
func (x Experiment_Location_SpectrumCompression) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Experiment_Location_SpectrumCompression.Descriptor instead.
func (Experiment_Location_SpectrumCompression) EnumDescriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 3, 0}
}
type Experiment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Dataset Summary meta fields are stored as JSON outside of here, a lot of those values being derived from
//
// counts of items in this file. The rest are fields on the root of Experiment here. This way anything that
// has access to an Experiment file won't need to also download the corresponding Dataset Summary.
// NOTE: Now that we support combining scans, these fields may not be set if it's a combination dataset
TargetId string `protobuf:"bytes,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
DriveId int32 `protobuf:"varint,11,opt,name=drive_id,json=driveId,proto3" json:"drive_id,omitempty"`
SiteId int32 `protobuf:"varint,12,opt,name=site_id,json=siteId,proto3" json:"site_id,omitempty"`
Target string `protobuf:"bytes,13,opt,name=target,proto3" json:"target,omitempty"`
Site string `protobuf:"bytes,14,opt,name=site,proto3" json:"site,omitempty"`
Title string `protobuf:"bytes,15,opt,name=title,proto3" json:"title,omitempty"`
Sol string `protobuf:"bytes,25,opt,name=sol,proto3" json:"sol,omitempty"`
Rtt int32 `protobuf:"varint,17,opt,name=rtt,proto3" json:"rtt,omitempty"`
Sclk int32 `protobuf:"varint,18,opt,name=sclk,proto3" json:"sclk,omitempty"`
// If we were generated when a bulk sum quant file existed, the file name is stored here for loading
BulkSumQuantFile string `protobuf:"bytes,9,opt,name=bulk_sum_quant_file,json=bulkSumQuantFile,proto3" json:"bulk_sum_quant_file,omitempty"`
// What is the detector configuration that this file was generated for
DetectorConfig string `protobuf:"bytes,10,opt,name=detector_config,json=detectorConfig,proto3" json:"detector_config,omitempty"`
// Counts, these can be counted by iterating through Locations but we store them here for reference
//
// NOTE: These will always be set!
BulkSpectra int32 `protobuf:"varint,19,opt,name=bulk_spectra,json=bulkSpectra,proto3" json:"bulk_spectra,omitempty"`
DwellSpectra int32 `protobuf:"varint,20,opt,name=dwell_spectra,json=dwellSpectra,proto3" json:"dwell_spectra,omitempty"`
MaxSpectra int32 `protobuf:"varint,21,opt,name=max_spectra,json=maxSpectra,proto3" json:"max_spectra,omitempty"`
NormalSpectra int32 `protobuf:"varint,22,opt,name=normal_spectra,json=normalSpectra,proto3" json:"normal_spectra,omitempty"`
PseudoIntensities int32 `protobuf:"varint,23,opt,name=pseudo_intensities,json=pseudoIntensities,proto3" json:"pseudo_intensities,omitempty"`
// This is the main or default context image to show. It matches either one of the images in aligned_context_images
//
// or one in unaligned_context_images
MainContextImage string `protobuf:"bytes,2,opt,name=main_context_image,json=mainContextImage,proto3" json:"main_context_image,omitempty"`
ScanSources []*Experiment_ScanSource `protobuf:"bytes,27,rep,name=scan_sources,json=scanSources,proto3" json:"scan_sources,omitempty"`
AlignedContextImages []*Experiment_ContextImageCoordinateInfo `protobuf:"bytes,24,rep,name=aligned_context_images,json=alignedContextImages,proto3" json:"aligned_context_images,omitempty"`
// Any other images, which we don't have beam location information for are in this array
UnalignedContextImages []string `protobuf:"bytes,6,rep,name=unaligned_context_images,json=unalignedContextImages,proto3" json:"unaligned_context_images,omitempty"`
MatchedAlignedContextImages []*Experiment_MatchedContextImageInfo `protobuf:"bytes,26,rep,name=matched_aligned_context_images,json=matchedAlignedContextImages,proto3" json:"matched_aligned_context_images,omitempty"`
// The labels and types of metadata fields we've stored in locations. This way MetaDataItem can refer to
//
// these arrays and not need to store redundant copies of the field name strings
MetaLabels []string `protobuf:"bytes,3,rep,name=meta_labels,json=metaLabels,proto3" json:"meta_labels,omitempty"`
MetaTypes []Experiment_MetaDataType `protobuf:"varint,4,rep,packed,name=meta_types,json=metaTypes,proto3,enum=Experiment_MetaDataType" json:"meta_types,omitempty"`
Locations []*Experiment_Location `protobuf:"bytes,5,rep,name=locations,proto3" json:"locations,omitempty"`
PseudoIntensityRanges []*Experiment_PseudoIntensityRange `protobuf:"bytes,8,rep,name=pseudo_intensity_ranges,json=pseudoIntensityRanges,proto3" json:"pseudo_intensity_ranges,omitempty"`
}
func (x *Experiment) Reset() {
*x = Experiment{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment) ProtoMessage() {}
func (x *Experiment) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment.ProtoReflect.Descriptor instead.
func (*Experiment) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0}
}
func (x *Experiment) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *Experiment) GetDriveId() int32 {
if x != nil {
return x.DriveId
}
return 0
}
func (x *Experiment) GetSiteId() int32 {
if x != nil {
return x.SiteId
}
return 0
}
func (x *Experiment) GetTarget() string {
if x != nil {
return x.Target
}
return ""
}
func (x *Experiment) GetSite() string {
if x != nil {
return x.Site
}
return ""
}
func (x *Experiment) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Experiment) GetSol() string {
if x != nil {
return x.Sol
}
return ""
}
func (x *Experiment) GetRtt() int32 {
if x != nil {
return x.Rtt
}
return 0
}
func (x *Experiment) GetSclk() int32 {
if x != nil {
return x.Sclk
}
return 0
}
func (x *Experiment) GetBulkSumQuantFile() string {
if x != nil {
return x.BulkSumQuantFile
}
return ""
}
func (x *Experiment) GetDetectorConfig() string {
if x != nil {
return x.DetectorConfig
}
return ""
}
func (x *Experiment) GetBulkSpectra() int32 {
if x != nil {
return x.BulkSpectra
}
return 0
}
func (x *Experiment) GetDwellSpectra() int32 {
if x != nil {
return x.DwellSpectra
}
return 0
}
func (x *Experiment) GetMaxSpectra() int32 {
if x != nil {
return x.MaxSpectra
}
return 0
}
func (x *Experiment) GetNormalSpectra() int32 {
if x != nil {
return x.NormalSpectra
}
return 0
}
func (x *Experiment) GetPseudoIntensities() int32 {
if x != nil {
return x.PseudoIntensities
}
return 0
}
func (x *Experiment) GetMainContextImage() string {
if x != nil {
return x.MainContextImage
}
return ""
}
func (x *Experiment) GetScanSources() []*Experiment_ScanSource {
if x != nil {
return x.ScanSources
}
return nil
}
func (x *Experiment) GetAlignedContextImages() []*Experiment_ContextImageCoordinateInfo {
if x != nil {
return x.AlignedContextImages
}
return nil
}
func (x *Experiment) GetUnalignedContextImages() []string {
if x != nil {
return x.UnalignedContextImages
}
return nil
}
func (x *Experiment) GetMatchedAlignedContextImages() []*Experiment_MatchedContextImageInfo {
if x != nil {
return x.MatchedAlignedContextImages
}
return nil
}
func (x *Experiment) GetMetaLabels() []string {
if x != nil {
return x.MetaLabels
}
return nil
}
func (x *Experiment) GetMetaTypes() []Experiment_MetaDataType {
if x != nil {
return x.MetaTypes
}
return nil
}
func (x *Experiment) GetLocations() []*Experiment_Location {
if x != nil {
return x.Locations
}
return nil
}
func (x *Experiment) GetPseudoIntensityRanges() []*Experiment_PseudoIntensityRange {
if x != nil {
return x.PseudoIntensityRanges
}
return nil
}
// A long time after we had individual datasets as above, we decided to support combination of multiple scans
//
// into one dataset. This required the ability to store meta data from each. In the Locations array, each location
// has an index to define which scan source it is from. The absense of scan_sources indicates this is an individual
// scan, not a combined one
type Experiment_ScanSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Instrument string `protobuf:"bytes,1,opt,name=instrument,proto3" json:"instrument,omitempty"`
// Dataset Summary meta fields are stored as JSON outside of here, a lot of those values being derived from
//
// counts of items in this file. The rest are fields on the root of Experiment here. This way anything that
// has access to an Experiment file won't need to also download the corresponding Dataset Summary.
TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
DriveId int32 `protobuf:"varint,3,opt,name=drive_id,json=driveId,proto3" json:"drive_id,omitempty"`
SiteId int32 `protobuf:"varint,4,opt,name=site_id,json=siteId,proto3" json:"site_id,omitempty"`
Target string `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
Site string `protobuf:"bytes,6,opt,name=site,proto3" json:"site,omitempty"`
Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"`
Sol string `protobuf:"bytes,8,opt,name=sol,proto3" json:"sol,omitempty"`
Rtt string `protobuf:"bytes,9,opt,name=rtt,proto3" json:"rtt,omitempty"`
Sclk int32 `protobuf:"varint,10,opt,name=sclk,proto3" json:"sclk,omitempty"`
BulkSumQuantFile string `protobuf:"bytes,11,opt,name=bulk_sum_quant_file,json=bulkSumQuantFile,proto3" json:"bulk_sum_quant_file,omitempty"`
DetectorConfig string `protobuf:"bytes,12,opt,name=detector_config,json=detectorConfig,proto3" json:"detector_config,omitempty"`
IdOffset int32 `protobuf:"varint,13,opt,name=id_offset,json=idOffset,proto3" json:"id_offset,omitempty"`
}
func (x *Experiment_ScanSource) Reset() {
*x = Experiment_ScanSource{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_ScanSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_ScanSource) ProtoMessage() {}
func (x *Experiment_ScanSource) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_ScanSource.ProtoReflect.Descriptor instead.
func (*Experiment_ScanSource) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Experiment_ScanSource) GetInstrument() string {
if x != nil {
return x.Instrument
}
return ""
}
func (x *Experiment_ScanSource) GetTargetId() string {
if x != nil {
return x.TargetId
}
return ""
}
func (x *Experiment_ScanSource) GetDriveId() int32 {
if x != nil {
return x.DriveId
}
return 0
}
func (x *Experiment_ScanSource) GetSiteId() int32 {
if x != nil {
return x.SiteId
}
return 0
}
func (x *Experiment_ScanSource) GetTarget() string {
if x != nil {
return x.Target
}
return ""
}
func (x *Experiment_ScanSource) GetSite() string {
if x != nil {
return x.Site
}
return ""
}
func (x *Experiment_ScanSource) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *Experiment_ScanSource) GetSol() string {
if x != nil {
return x.Sol
}
return ""
}
func (x *Experiment_ScanSource) GetRtt() string {
if x != nil {
return x.Rtt
}
return ""
}
func (x *Experiment_ScanSource) GetSclk() int32 {
if x != nil {
return x.Sclk
}
return 0
}
func (x *Experiment_ScanSource) GetBulkSumQuantFile() string {
if x != nil {
return x.BulkSumQuantFile
}
return ""
}
func (x *Experiment_ScanSource) GetDetectorConfig() string {
if x != nil {
return x.DetectorConfig
}
return ""
}
func (x *Experiment_ScanSource) GetIdOffset() int32 {
if x != nil {
return x.IdOffset
}
return 0
}
// Aligned context image - describes which PMC images are defined for, and if they're trapezoid corrected. This is
//
// stored in the same order as location BeamLocation i/j coordinates, so [0] is BeamLocation.image_i/image_j and
// [1] is BeamLocation.context_locations[0], etc
// Can think of this as the metadata to describe what's in a beam location object
type Experiment_ContextImageCoordinateInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // image file name
Pmc int32 `protobuf:"varint,2,opt,name=pmc,proto3" json:"pmc,omitempty"` // PMC for the image
TrapezoidCorrected bool `protobuf:"varint,3,opt,name=trapezoid_corrected,json=trapezoidCorrected,proto3" json:"trapezoid_corrected,omitempty"` // Is this image trapezoid corrected
ScanSource int32 `protobuf:"varint,4,opt,name=scan_source,json=scanSource,proto3" json:"scan_source,omitempty"` // Not set if this is not a combined dataset
BeamVersion uint32 `protobuf:"varint,5,opt,name=beamVersion,proto3" json:"beamVersion,omitempty"` // version of beam location generator
}
func (x *Experiment_ContextImageCoordinateInfo) Reset() {
*x = Experiment_ContextImageCoordinateInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_ContextImageCoordinateInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_ContextImageCoordinateInfo) ProtoMessage() {}
func (x *Experiment_ContextImageCoordinateInfo) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_ContextImageCoordinateInfo.ProtoReflect.Descriptor instead.
func (*Experiment_ContextImageCoordinateInfo) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 1}
}
func (x *Experiment_ContextImageCoordinateInfo) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
func (x *Experiment_ContextImageCoordinateInfo) GetPmc() int32 {
if x != nil {
return x.Pmc
}
return 0
}
func (x *Experiment_ContextImageCoordinateInfo) GetTrapezoidCorrected() bool {
if x != nil {
return x.TrapezoidCorrected
}
return false
}
func (x *Experiment_ContextImageCoordinateInfo) GetScanSource() int32 {
if x != nil {
return x.ScanSource
}
return 0
}
func (x *Experiment_ContextImageCoordinateInfo) GetBeamVersion() uint32 {
if x != nil {
return x.BeamVersion
}
return 0
}
// Matched context image - list of context images which have been transformed to match a given PMC's MCC
//
// image (in aligned_context_images), for example WATSON images. The image needs to be transformed so the MCC image
// area matches pixel-for-pixel, but the image is likely to be of a different size, so we include an x/y offset.
// This gives the top-left pixel coordinate of MCC image relative to the top-left of the matched image. This way
// the PMC beam locations can be reused to draw their position on the matched image.
type Experiment_MatchedContextImageInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // image file name
AlignedIndex int32 `protobuf:"varint,2,opt,name=aligned_index,json=alignedIndex,proto3" json:"aligned_index,omitempty"` // aligned_context_images array index this one matches
XOffset float32 `protobuf:"fixed32,3,opt,name=x_offset,json=xOffset,proto3" json:"x_offset,omitempty"` // x-offset of matched left edge vs aligned image
YOffset float32 `protobuf:"fixed32,4,opt,name=y_offset,json=yOffset,proto3" json:"y_offset,omitempty"` // y-offset of matched top edge vs aligned image
XScale float32 `protobuf:"fixed32,5,opt,name=x_scale,json=xScale,proto3" json:"x_scale,omitempty"` // x-scale of matched vs aligned width, if matched is 2000 wide, aligned is 1000, this=2
YScale float32 `protobuf:"fixed32,6,opt,name=y_scale,json=yScale,proto3" json:"y_scale,omitempty"` // y-scale of matched vs aligned height
}
func (x *Experiment_MatchedContextImageInfo) Reset() {
*x = Experiment_MatchedContextImageInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_MatchedContextImageInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_MatchedContextImageInfo) ProtoMessage() {}
func (x *Experiment_MatchedContextImageInfo) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_MatchedContextImageInfo.ProtoReflect.Descriptor instead.
func (*Experiment_MatchedContextImageInfo) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 2}
}
func (x *Experiment_MatchedContextImageInfo) GetImage() string {
if x != nil {
return x.Image
}
return ""
}
func (x *Experiment_MatchedContextImageInfo) GetAlignedIndex() int32 {
if x != nil {
return x.AlignedIndex
}
return 0
}
func (x *Experiment_MatchedContextImageInfo) GetXOffset() float32 {
if x != nil {
return x.XOffset
}
return 0
}
func (x *Experiment_MatchedContextImageInfo) GetYOffset() float32 {
if x != nil {
return x.YOffset
}
return 0
}
func (x *Experiment_MatchedContextImageInfo) GetXScale() float32 {
if x != nil {
return x.XScale
}
return 0
}
func (x *Experiment_MatchedContextImageInfo) GetYScale() float32 {
if x != nil {
return x.YScale
}
return 0
}
type Experiment_Location struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
ScanSource int32 `protobuf:"varint,9,opt,name=scan_source,json=scanSource,proto3" json:"scan_source,omitempty"` // Not set if this is not a combined dataset
Meta []*Experiment_Location_MetaDataItem `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty"`
Beam *Experiment_Location_BeamLocation `protobuf:"bytes,3,opt,name=beam,proto3" json:"beam,omitempty"`
SpectrumCompression Experiment_Location_SpectrumCompression `protobuf:"varint,4,opt,name=spectrum_compression,json=spectrumCompression,proto3,enum=Experiment_Location_SpectrumCompression" json:"spectrum_compression,omitempty"`
// Need multiple of these, detector A & B but can have normal & dwell
Detectors []*Experiment_Location_DetectorSpectrum `protobuf:"bytes,5,rep,name=detectors,proto3" json:"detectors,omitempty"`
// Ability to store an image per PMC, FM data several images with different PMCs in the file name
ContextImage string `protobuf:"bytes,6,opt,name=context_image,json=contextImage,proto3" json:"context_image,omitempty"`
PseudoIntensities []*Experiment_Location_PseudoIntensityData `protobuf:"bytes,7,rep,name=pseudo_intensities,json=pseudoIntensities,proto3" json:"pseudo_intensities,omitempty"`
}
func (x *Experiment_Location) Reset() {
*x = Experiment_Location{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_Location) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_Location) ProtoMessage() {}
func (x *Experiment_Location) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_Location.ProtoReflect.Descriptor instead.
func (*Experiment_Location) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 3}
}
func (x *Experiment_Location) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Experiment_Location) GetScanSource() int32 {
if x != nil {
return x.ScanSource
}
return 0
}
func (x *Experiment_Location) GetMeta() []*Experiment_Location_MetaDataItem {
if x != nil {
return x.Meta
}
return nil
}
func (x *Experiment_Location) GetBeam() *Experiment_Location_BeamLocation {
if x != nil {
return x.Beam
}
return nil
}
func (x *Experiment_Location) GetSpectrumCompression() Experiment_Location_SpectrumCompression {
if x != nil {
return x.SpectrumCompression
}
return Experiment_Location_RAW
}
func (x *Experiment_Location) GetDetectors() []*Experiment_Location_DetectorSpectrum {
if x != nil {
return x.Detectors
}
return nil
}
func (x *Experiment_Location) GetContextImage() string {
if x != nil {
return x.ContextImage
}
return ""
}
func (x *Experiment_Location) GetPseudoIntensities() []*Experiment_Location_PseudoIntensityData {
if x != nil {
return x.PseudoIntensities
}
return nil
}
// If we have pseudo-intensity data, this will contain the labels of the elements from the CSV, along with
//
// their channel start/end
type Experiment_PseudoIntensityRange struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ChannelStart int32 `protobuf:"varint,2,opt,name=channel_start,json=channelStart,proto3" json:"channel_start,omitempty"`
ChannelEnd int32 `protobuf:"varint,3,opt,name=channel_end,json=channelEnd,proto3" json:"channel_end,omitempty"`
}
func (x *Experiment_PseudoIntensityRange) Reset() {
*x = Experiment_PseudoIntensityRange{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_PseudoIntensityRange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_PseudoIntensityRange) ProtoMessage() {}
func (x *Experiment_PseudoIntensityRange) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_PseudoIntensityRange.ProtoReflect.Descriptor instead.
func (*Experiment_PseudoIntensityRange) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 4}
}
func (x *Experiment_PseudoIntensityRange) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Experiment_PseudoIntensityRange) GetChannelStart() int32 {
if x != nil {
return x.ChannelStart
}
return 0
}
func (x *Experiment_PseudoIntensityRange) GetChannelEnd() int32 {
if x != nil {
return x.ChannelEnd
}
return 0
}
type Experiment_Location_MetaDataItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Only storing the metadata label outside of the item, here we just store its index
LabelIdx int32 `protobuf:"varint,1,opt,name=label_idx,json=labelIdx,proto3" json:"label_idx,omitempty"`
// NOTE: in javascript protobuf there is no "has" function, so each of these report their default
//
// value which means if it's a 0 or 0.0 or '' we don't actually know what type to treat it as, so we
// are putting types in an enum list instead, one for each meta_label at the root object!
Fvalue float32 `protobuf:"fixed32,2,opt,name=fvalue,proto3" json:"fvalue,omitempty"`
Ivalue int32 `protobuf:"varint,3,opt,name=ivalue,proto3" json:"ivalue,omitempty"`
Svalue string `protobuf:"bytes,4,opt,name=svalue,proto3" json:"svalue,omitempty"`
}
func (x *Experiment_Location_MetaDataItem) Reset() {
*x = Experiment_Location_MetaDataItem{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_Location_MetaDataItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_Location_MetaDataItem) ProtoMessage() {}
func (x *Experiment_Location_MetaDataItem) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Experiment_Location_MetaDataItem.ProtoReflect.Descriptor instead.
func (*Experiment_Location_MetaDataItem) Descriptor() ([]byte, []int) {
return file_data_formats_file_formats_experiment_proto_rawDescGZIP(), []int{0, 3, 0}
}
func (x *Experiment_Location_MetaDataItem) GetLabelIdx() int32 {
if x != nil {
return x.LabelIdx
}
return 0
}
func (x *Experiment_Location_MetaDataItem) GetFvalue() float32 {
if x != nil {
return x.Fvalue
}
return 0
}
func (x *Experiment_Location_MetaDataItem) GetIvalue() int32 {
if x != nil {
return x.Ivalue
}
return 0
}
func (x *Experiment_Location_MetaDataItem) GetSvalue() string {
if x != nil {
return x.Svalue
}
return ""
}
type Experiment_Location_BeamLocation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
GeomCorr float32 `protobuf:"fixed32,7,opt,name=geom_corr,json=geomCorr,proto3" json:"geom_corr,omitempty"`
// Relative to the image whose file name is in main_context_image
ImageI float32 `protobuf:"fixed32,4,opt,name=image_i,json=imageI,proto3" json:"image_i,omitempty"`
ImageJ float32 `protobuf:"fixed32,5,opt,name=image_j,json=imageJ,proto3" json:"image_j,omitempty"`
// Each context image is taken at different locations, so needs its own relative set of beam location
//
// coordinates. The image_i/image_j coordinates are relative to main_context_image, while here we store
// other coordinates, which are relative to the corresponding array item of aligned_context_images. Ended up
// this way because we originally we only had one set of i/j's, relative to one context image, and
// extending by adding another array was the smoothest in terms of backwards compatibility.
ContextLocations []*Experiment_Location_BeamLocation_Coordinate2D `protobuf:"bytes,6,rep,name=context_locations,json=contextLocations,proto3" json:"context_locations,omitempty"`
}
func (x *Experiment_Location_BeamLocation) Reset() {
*x = Experiment_Location_BeamLocation{}
if protoimpl.UnsafeEnabled {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Experiment_Location_BeamLocation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Experiment_Location_BeamLocation) ProtoMessage() {}
func (x *Experiment_Location_BeamLocation) ProtoReflect() protoreflect.Message {
mi := &file_data_formats_file_formats_experiment_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}