3.1.1.3.1.6. opengate.contrib.phantom_nema_iec_body

3.1.1.3.1.6.1. Module Contents

3.1.1.3.1.6.1.1. Functions

create_material()

add_phantom(simulation[, name])

add_phantom_old(simulation[, name])

iec_add_sphere(sim, name, vol, diam, sph_thick, ...)

add_spheres_sources(simulation, iec_name, src_name, ...)

dump_spheres_activity(simulation, iec_name, src_name)

dump_bg_activity(simulation, iec_name, src_name)

add_one_sphere_source(simulation, iec_name, src_name, ...)

add_background_source(simulation, iec_name, src_name, ...)

generate_pos_dir_one_sphere(center, radius, n[, rs])

This function should be useful to generate conditional data for condGAN.

generate_pos_one_sphere(center, radius, n[, rs])

generate_pos_dir_spheres(centers, radius, n_samples, ...)

This function generate conditional data for condGAN.

generate_pos_spheres(centers, radius, n_samples, shuffle)

Like generate_pos_dir_spheres, but position only

get_n_samples_from_ratio(n, ratio)

For a given proportion of activities (in ratio) and total number of particle n,

compute_sphere_centers_and_volumes(sim, name)

get_default_sphere_centers_and_volumes()

Global spheres centers in the phantom, to avoid using the phantom in same cases.

3.1.1.3.1.6.1.2. Attributes

iec_plastic

water

iec_lung

opengate.contrib.phantom_nema_iec_body.iec_plastic = 'IEC_PLASTIC'[source]
opengate.contrib.phantom_nema_iec_body.water = 'G4_WATER'[source]
opengate.contrib.phantom_nema_iec_body.iec_lung = 'G4_LUNG_ICRP'[source]
opengate.contrib.phantom_nema_iec_body.create_material()[source]
opengate.contrib.phantom_nema_iec_body.add_phantom(simulation, name='iec')[source]
opengate.contrib.phantom_nema_iec_body.add_phantom_old(simulation, name='iec')[source]
opengate.contrib.phantom_nema_iec_body.iec_add_sphere(sim, name, vol, diam, sph_thick, cap_thick, position)[source]
opengate.contrib.phantom_nema_iec_body.add_spheres_sources(simulation, iec_name, src_name, spheres, activity_Bq_mL, verbose=False)[source]
opengate.contrib.phantom_nema_iec_body.dump_spheres_activity(simulation, iec_name, src_name)[source]
opengate.contrib.phantom_nema_iec_body.dump_bg_activity(simulation, iec_name, src_name)[source]
opengate.contrib.phantom_nema_iec_body.add_one_sphere_source(simulation, iec_name, src_name, diameter, activity_Bq_mL)[source]
opengate.contrib.phantom_nema_iec_body.add_background_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]
opengate.contrib.phantom_nema_iec_body.generate_pos_dir_one_sphere(center, radius, n, rs=np.random)[source]

This function should be useful to generate conditional data for condGAN. It samples the position in a sphere and isotropic direction. The center/radius is the center and radius of the sphere A numpy array of (n,6) is returned. 3 first = position 3 last = direction

opengate.contrib.phantom_nema_iec_body.generate_pos_one_sphere(center, radius, n, rs=np.random)[source]
opengate.contrib.phantom_nema_iec_body.generate_pos_dir_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]

This function generate conditional data for condGAN. It samples the position in several spheres, with isotropic direction. The center/radius are the center and radius of the spheres. n_samples is the number of samples per sphere, with a total of n. Samples can be shuffled (by default). A numpy array of (n,6) is returned.

opengate.contrib.phantom_nema_iec_body.generate_pos_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]

Like generate_pos_dir_spheres, but position only

opengate.contrib.phantom_nema_iec_body.get_n_samples_from_ratio(n, ratio)[source]

For a given proportion of activities (in ratio) and total number of particle n, compute the list of particle for each index.

opengate.contrib.phantom_nema_iec_body.compute_sphere_centers_and_volumes(sim, name)[source]
opengate.contrib.phantom_nema_iec_body.get_default_sphere_centers_and_volumes()[source]

Global spheres centers in the phantom, to avoid using the phantom in same cases. Were computed with 10/06/2022 version. No translation. To be recomputed with compute_sphere_centers_and_volumes