3.10.1.5.1.5.1.2. opengate.contrib.phantoms.nemaiec

3.10.1.5.1.5.1.2.1. Attributes

iec_plastic

water

iec_lung

red

blue

gray

transparent

3.10.1.5.1.5.1.2.2. Functions

create_material(simulation)

add_iec_phantom(simulation[, name, check_overlap, ...])

add_iec_body(simulation, name[, thickness, thickness_z])

add_iec_central_cylinder(sim, name, top_interior)

add_iec_all_spheres(simulation, name, thickness_z[, ...])

Starting angle : in deg. Indicate the (angle) position of the first smallest sphere.

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

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

compute_sphere_activity(simulation, iec_name, ...)

compute_total_spheres_activity(simulation, iec_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_central_cylinder_source(simulation, iec_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_old()

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

get_default_sphere_centers_and_volumes()

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

3.10.1.5.1.5.1.2.3. Module Contents

opengate.contrib.phantoms.nemaiec.iec_plastic = 'IEC_PLASTIC'[source]
opengate.contrib.phantoms.nemaiec.water = 'G4_WATER'[source]
opengate.contrib.phantoms.nemaiec.iec_lung = 'G4_LUNG_ICRP'[source]
opengate.contrib.phantoms.nemaiec.red = [1, 0.7, 0.7, 0.8][source]
opengate.contrib.phantoms.nemaiec.blue = [0.5, 0.5, 1, 0.8][source]
opengate.contrib.phantoms.nemaiec.gray = [0.5, 0.5, 0.5, 1][source]
opengate.contrib.phantoms.nemaiec.transparent = [0, 0, 0, 0][source]
opengate.contrib.phantoms.nemaiec.create_material(simulation)[source]
opengate.contrib.phantoms.nemaiec.add_iec_phantom(simulation, name='iec', check_overlap=False, sphere_starting_angle=False, toggle_sphere_order=False)[source]
opengate.contrib.phantoms.nemaiec.add_iec_body(simulation, name, thickness=0.0, thickness_z=0.0)[source]
opengate.contrib.phantoms.nemaiec.add_iec_central_cylinder(sim, name, top_interior)[source]
opengate.contrib.phantoms.nemaiec.add_iec_all_spheres(simulation, name, thickness_z, starting_angle=False, reverse_order=False)[source]

Starting angle : in deg. Indicate the (angle) position of the first smallest sphere. It is 180 deg by default.

opengate.contrib.phantoms.nemaiec.add_iec_one_sphere(sim, name, vol, diam, sph_thick, cap_thick, position, thickness_z)[source]
opengate.contrib.phantoms.nemaiec.add_spheres_sources(simulation, iec_name, src_name, spheres, activity_Bq_mL, verbose=False, source_type='GenericSource')[source]
opengate.contrib.phantoms.nemaiec.compute_sphere_activity(simulation, iec_name, src_name, diam)[source]
opengate.contrib.phantoms.nemaiec.compute_total_spheres_activity(simulation, iec_name, src_name)[source]
opengate.contrib.phantoms.nemaiec.dump_spheres_activity(simulation, iec_name, src_name)[source]
opengate.contrib.phantoms.nemaiec.dump_bg_activity(simulation, iec_name, src_name)[source]
opengate.contrib.phantoms.nemaiec.add_one_sphere_source(simulation, iec_name, src_name, diameter, activity_Bq_mL, source_type)[source]
opengate.contrib.phantoms.nemaiec.add_central_cylinder_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]
opengate.contrib.phantoms.nemaiec.add_background_source(simulation, iec_name, src_name, activity_Bq_mL, verbose=False)[source]
opengate.contrib.phantoms.nemaiec.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.phantoms.nemaiec.generate_pos_one_sphere(center, radius, n, rs=np.random)[source]
opengate.contrib.phantoms.nemaiec.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.phantoms.nemaiec.generate_pos_spheres(centers, radius, n_samples, shuffle, rs=np.random)[source]

Like generate_pos_dir_spheres, but position only

opengate.contrib.phantoms.nemaiec.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.phantoms.nemaiec.compute_sphere_centers_and_volumes(sim, name)[source]
opengate.contrib.phantoms.nemaiec.get_default_sphere_centers_and_volumes_old()[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

opengate.contrib.phantoms.nemaiec.get_default_sphere_centers_and_volumes()[source]

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