Skip to main content
Ctrl+K
Infinity-Tomographic-Reconstruction 0.1.0 documentation - Home

Site Navigation

  • Installation
  • Examples
  • API reference
  • Please cite
  • GitHub

Site Navigation

  • Installation
  • Examples
  • API reference
  • Please cite
  • GitHub

Section Navigation

  • toor package
    • toor.AnalyticalReconstruction package
    • toor.CalibrationWrapper package
    • toor.Corrections package
      • toor.Corrections.CT package
        • toor.Corrections.CT.Projector package
      • toor.Corrections.DualRotation package
        • toor.Corrections.DualRotation.Normalization package
        • toor.Corrections.DualRotation.SystemFocus package
      • toor.Corrections.General package
      • toor.Corrections.PET package
        • toor.Corrections.PET.Attenuation package
        • toor.Corrections.PET.DOI package
        • toor.Corrections.PET.DecayCorrection package
        • toor.Corrections.PET.EnergyCorrection package
        • toor.Corrections.PET.Projector package
    • toor.Designer package
    • toor.DetectionLayout package
      • toor.DetectionLayout.Collimators package
      • toor.DetectionLayout.Modules package
      • toor.DetectionLayout.Photodetectors package
        • toor.DetectionLayout.Photodetectors.Crystals package
        • toor.DetectionLayout.Photodetectors.SiPM package
      • toor.DetectionLayout.RadiationProducer package
      • toor.DetectionLayout.Semicondutors package
    • toor.Device package
    • toor.GateLink package
      • toor.GateLink.GateToTor package
      • toor.GateLink.RootToTor package
      • toor.GateLink.ToRToGate package
    • toor.Geometry package
      • toor.Geometry.LinearPET package
      • toor.Geometry.Standard package
      • toor.Geometry.dualRotationBased package
    • toor.ImageReader package
      • toor.ImageReader.DICOM package
      • toor.ImageReader.Interfile package
      • toor.ImageReader.RawData package
    • toor.Optimizer package
    • toor.Quantification package
    • toor.TORFilesReader package
  • API reference
  • toor.GateLink package
  • toor.GateLin...

toor.GateLink.GateToTor package#

Submodules#

toor.GateLink.GateToTor.GateToTor module#

toor.GateLink.GateToTor.MacParser module#

class toor.GateLink.GateToTor.MacParser.GATEMacParser(file_path)[source]#

Bases: object

A class to parse and manipulate GATE macro files.

get_fields(keyword)[source]#

Retrieve all lines containing a specific keyword. :type keyword: :param keyword: The keyword to search for in the file. :type keyword: str

Returns:

A list of lines containing the keyword.

Return type:

list

replace_field(keyword, new_value)[source]#

Replace the value of a specific field in the macro file. :type keyword: :param keyword: The keyword of the field to replace. :type keyword: str :type new_value: :param new_value: The new value to set. :type new_value: str

save(output_path)[source]#

Save the modified content to a new file. :type output_path: :param output_path: Path to save the modified file. :type output_path: str

Module contents#

previous

toor.GateLink package

next

toor.GateLink.RootToTor package

On this page
  • Submodules
  • toor.GateLink.GateToTor.GateToTor module
  • toor.GateLink.GateToTor.MacParser module
    • GATEMacParser
      • GATEMacParser.get_fields()
      • GATEMacParser.replace_field()
      • GATEMacParser.save()
  • Module contents

© Copyright 2025, Pedro Encarnação.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.14.2.