Code Duplication    Length = 35-35 lines in 2 locations

savu/plugins/centering/vo_centering_iterative.py 1 location

@@ 438-472 (lines=35) @@
435
            msg = "Confidence in the centre value is low."
436
        return [msg]
437
438
    def get_citation_information(self):
439
        cite_info = CitationInformation()
440
        cite_info.description = \
441
            ("The center of rotation for this reconstruction was calculated " +
442
             "automatically using the method described in this work")
443
        cite_info.bibtex = \
444
            ("@article{vo2014reliable,\n" +
445
             "title={Reliable method for calculating the center of rotation " +
446
             "in parallel-beam tomography},\n" +
447
             "author={Vo, Nghia T and Drakopoulos, Michael and Atwood, " +
448
             "Robert C and Reinhard, Christina},\n" +
449
             "journal={Optics Express},\n" +
450
             "volume={22},\n" +
451
             "number={16},\n" +
452
             "pages={19078--19086},\n" +
453
             "year={2014},\n" +
454
             "publisher={Optical Society of America}\n" +
455
             "}")
456
        cite_info.endnote = \
457
            ("%0 Journal Article\n" +
458
             "%T Reliable method for calculating the center of rotation in " +
459
             "parallel-beam tomography\n" +
460
             "%A Vo, Nghia T\n" +
461
             "%A Drakopoulos, Michael\n" +
462
             "%A Atwood, Robert C\n" +
463
             "%A Reinhard, Christina\n" +
464
             "%J Optics Express\n" +
465
             "%V 22\n" +
466
             "%N 16\n" +
467
             "%P 19078-19086\n" +
468
             "%@ 1094-4087\n" +
469
             "%D 2014\n" +
470
             "%I Optical Society of America")
471
        cite_info.doi = "https://doi.org/10.1364/OE.22.019078"
472
        return cite_info
473

savu/plugins/centering/vo_centering.py 1 location

@@ 341-375 (lines=35) @@
338
    def fix_transport(self):
339
        return 'hdf5'
340
341
    def get_citation_information(self):
342
        cite_info = CitationInformation()
343
        cite_info.description = \
344
            ("The center of rotation for this reconstruction was calculated " +
345
             "automatically using the method described in this work")
346
        cite_info.bibtex = \
347
            ("@article{vo2014reliable,\n" +
348
             "title={Reliable method for calculating the center of rotation " +
349
             "in parallel-beam tomography},\n" +
350
             "author={Vo, Nghia T and Drakopoulos, Michael and Atwood, " +
351
             "Robert C and Reinhard, Christina},\n" +
352
             "journal={Optics Express},\n" +
353
             "volume={22},\n" +
354
             "number={16},\n" +
355
             "pages={19078--19086},\n" +
356
             "year={2014},\n" +
357
             "publisher={Optical Society of America}\n" +
358
             "}")
359
        cite_info.endnote = \
360
            ("%0 Journal Article\n" +
361
             "%T Reliable method for calculating the center of rotation in " +
362
             "parallel-beam tomography\n" +
363
             "%A Vo, Nghia T\n" +
364
             "%A Drakopoulos, Michael\n" +
365
             "%A Atwood, Robert C\n" +
366
             "%A Reinhard, Christina\n" +
367
             "%J Optics Express\n" +
368
             "%V 22\n" +
369
             "%N 16\n" +
370
             "%P 19078-19086\n" +
371
             "%@ 1094-4087\n" +
372
             "%D 2014\n" +
373
             "%I Optical Society of America")
374
        cite_info.doi = "https://doi.org/10.1364/OE.22.019078"
375
        return cite_info
376
377
    def executive_summary(self):
378
        if ((self.error_msg_1 == "")