atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

many warnings after several calls to getcellstruct.m #32

Open simoneliuzzo opened 6 years ago

simoneliuzzo commented 6 years ago

Dear @bnash @carmignani @lnadolski @lfarv ,

as noticed by Zeus Marti' (ALBA) and me and Reine Versteegen in the past there is a problem with getcellstruct.m.

When getcellstruct.m is called many times, after the Nth call (N big enough), a warning starts to be printed. The only way to cancel the warning is to restart matlab. However after several calls to getcellstruct.m the warning will appear again.

A possible, very ugly, fix has been committed in error_corrections branch

ZeusMarti commented 6 years ago

Thanks Simone. After some non super exhaustive tests it seems to work for us. We will adopt your solution and post here if any inconvenience is found.