Generate random samples from a model

Generate random samples from a model#

author: OpenTPS team

This example demonstrates how to generate random samples from a model using OpenTPS.

running time: ~ 5 minutes

Setting up the environment in google collab#

import sys
if "google.colab" in sys.modules:
    from IPython import get_ipython
    get_ipython().system('git clone https://gitlab.com/openmcsquare/opentps.git')
    get_ipython().system('pip install ./opentps')
    get_ipython().system('pip install scipy==1.10.1')
    import opentps

imports

import os
import sys
import time
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path
import opentps

import the needed opentps.core packages

from opentps.core.io.serializedObjectIO import loadDataStructure
from opentps.core.processing.deformableDataAugmentationToolBox.generateRandomSamplesFromModel import generateRandomImagesFromModel, generateRandomDeformationsFromModel
01/09/2025 08:51:40 AM - root - INFO - Loading logging configuration: /opt/hostedtoolcache/Python/3.11.13/x64/lib/python3.11/site-packages/opentps/core/config/logger/logging_config.json
01/09/2025 08:51:40 AM - opentps.core._loggingConfig - INFO - Log level set: INFO
01/09/2025 08:51:41 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not found.
01/09/2025 08:51:41 AM - opentps.core.processing.registration.registrationMorphons - WARNING - cupy not found.
01/09/2025 08:51:41 AM - opentps.core.processing.registration.morphonsCupy - WARNING - cupy not found.

Data path

testDataPath = os.path.join(Path(os.getcwd()).parent.absolute(), 'testData/')

read a serialized dynamic sequence

dataPath = testDataPath + "veryLightDynMod.p"
dynMod = loadDataStructure(dataPath)[0]

tryGPU = True
numberOfSamples = 50

imageList = []

startTime = time.time()

defList = generateRandomDeformationsFromModel(dynMod, numberOfSamples=numberOfSamples, ampDistribution='gaussian')
for deformation in defList:
    imageList.append(deformation.deformImage(dynMod.midp, fillValue='closest', tryGPU=tryGPU))

print(len(imageList))
print('first test done in ', np.round(time.time() - startTime, 2))

plt.figure()
plt.imshow(imageList[0].imageArray[:, 50, :])
plt.show()
run generateRandomSamplesFromModel
Dynamic3DModel taken from opentps.core.data.dynamicData._dynamic3DModel instead of Core.Data.DynamicData.dynamic3DModel
Event taken from opentps.core._event instead of Core.event
CTImage taken from opentps.core.data.images._ctImage instead of Core.Data.Images._ctImage
Deformation3D taken from opentps.core.data.images._deformation3D instead of Core.Data.Images._deformation3D
VectorField3D taken from opentps.core.data.images._vectorField3D instead of Core.Data.Images._vectorField3D
01/09/2025 08:51:42 AM - opentps.core.io.serializedObjectIO - INFO - Serialized data list of 1 items loaded
01/09/2025 08:51:42 AM - opentps.core.io.serializedObjectIO - INFO - 1, <class 'opentps.core.data.dynamicData._dynamic3DModel.Dynamic3DModel'>
01/09/2025 08:51:42 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:42 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:42 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:42 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:43 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:43 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:43 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:43 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:43 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:43 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:43 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:44 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:44 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:44 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:44 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:44 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:44 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:44 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:44 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:44 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:44 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:45 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:45 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:45 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:45 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:45 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:45 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:46 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:46 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:46 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:46 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:46 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:46 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:46 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:46 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:47 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:47 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:47 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:47 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:47 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:47 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:47 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:47 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:48 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:48 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:48 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:48 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:48 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:48 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:48 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:48 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:49 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:49 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:49 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:49 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:49 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:49 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:49 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:49 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:50 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:50 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:50 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:50 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:50 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:50 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:50 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:50 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:51 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:51 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:51 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:51 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:51 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:51 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:51 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:51 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:52 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:52 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:52 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:52 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:52 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:52 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:52 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:52 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:53 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:53 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:53 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:53 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:53 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:53 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:53 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:53 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:54 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:54 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:54 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:54 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:54 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:54 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:54 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:54 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:55 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
50
first test done in  12.93
startTime = time.time()
imageList = generateRandomImagesFromModel(dynMod, numberOfSamples=numberOfSamples, ampDistribution='gaussian', tryGPU=tryGPU)
print('second test done in ', np.round(time.time() - startTime, 2))

plt.figure()
plt.imshow(imageList[0].imageArray[:, 50, :])
plt.show()
run generateRandomSamplesFromModel
01/09/2025 08:51:55 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:55 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:55 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:55 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:55 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:56 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:56 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:56 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:56 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:56 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:56 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:57 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:57 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:57 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:57 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:57 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:57 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:57 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:57 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:58 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:58 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:58 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:58 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:58 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:58 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:58 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:58 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:59 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:59 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:59 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:59 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:59 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:59 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:51:59 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:51:59 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:00 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:00 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:00 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:00 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:00 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:00 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:00 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:00 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:01 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:01 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:01 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:01 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:01 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:01 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:01 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:01 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:02 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:02 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:02 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:02 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:02 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:02 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:03 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:03 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:03 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:03 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:03 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:03 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:03 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:03 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:03 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:03 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:04 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:04 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:04 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:04 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:04 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:04 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:04 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:04 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:05 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:05 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:05 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:05 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:05 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:05 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:05 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:05 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:06 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:06 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:06 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:06 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:06 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:06 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:06 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:06 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:07 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:07 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:07 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:07 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:07 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:07 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:07 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
01/09/2025 08:52:07 AM - opentps.core.data.images._vectorField3D - WARNING - cupy not used for field exponentiation.
01/09/2025 08:52:08 AM - opentps.core.processing.C_libraries.libInterp3_wrapper - INFO - cupy 3D interpolation not enabled. The C implementation is tried instead
second test done in  13.04

Total running time of the script: (0 minutes 27.375 seconds)

Gallery generated by Sphinx-Gallery