Maximilian Hoffmann

Results 40 comments of Maximilian Hoffmann

Sorry, of course. It's Windows 10, and conda, this is the clean env before I installed jupytext/ i.e. the one that I had to re-install yesterday ``` # # Name...

I have the same problem with %matplotlib widget, and I do not want to switch to inline plotting. Is there a work around?

Yes, the file was produced with 1.0.28 (which obv. I cannot change anymore) , but reading: ``` p_audio="D:\\20220330_1900_3_female_8_male_Audio.flac" file=sf.SoundFile(p_audio) file.seek(10*file.samplerate) file.read(10*file.samplerate,dtype='int32') print(sf.__libsndfile_version__) file.seek(1086*10*file.samplerate) file.read(10*file.samplerate) ``` ``` 1.1.0 --------------------------------------------------------------------------- RuntimeError Traceback...

Re-encoding with ``` PS D:\> sox --version C:\Program Files (x86)\sox-14-4-2\sox.exe: SoX v14.4.2 ``` get's rid of this problem. Is this because of different libFLAC versions sox and libsndfile are compiled...

> Hi @MaximilianHoffmann . Does this happen on the latest version (1.1.0)? ~I think the problem might be gone, if files are created with 1.1.0~ It persists.

``` fi = ants.from_numpy(tmpl.astype('float32')) mi = ants.from_numpy(vol1_shift_c.astype('float32')) reg = ants.registration( fi, mi, 'Rigid', aff_random_sampling_rate=0.1, random_seed=1, verbose=1 ) ``` Leads to ``` *** Running Euler3DTransform registration *** Exception caught: itk::ExceptionObject (0x55d7cda9e110)...

A cropout is [here](https://owncloud-ext.charite.de/owncloud/index.php/s/KTjL2G1fRPwetJs)

``` import h5py as h5 import ants import os import io import tempfile path_to_data=pt+'/antspy_test.h5' os.environ["ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS"] = "1" original_stdout_fd = sys.__stdout__.fileno() # Duplicate FD to __stdout__ saved_stdout_fd = os.dup(original_stdout_fd) # create...

But allow me one question: after conversion to the antspy image the date is fixed in float 32 format. How can any center of mass calculation give something that is...