From bdac1a65d999a8299ffd9a5c495eec87ef35948b Mon Sep 17 00:00:00 2001 From: vpustova <vassili.pustovalov@irit.fr> Date: Fri, 25 Apr 2025 12:44:59 +0000 Subject: [PATCH] Upload New File --- SimPlatform/DataGen.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 SimPlatform/DataGen.py diff --git a/SimPlatform/DataGen.py b/SimPlatform/DataGen.py new file mode 100644 index 0000000..9d66a56 --- /dev/null +++ b/SimPlatform/DataGen.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- +""" +Created on Wed Aug 15 13:48:39 2018 + +@author: Yi Zhang +""" + +import numpy as np +import sys +sys.path.append('../') +from SimPlatform.Simulator import Simulator +from SimPlatform.Parameters import params_default +from scipy.io import savemat + + +# ============================================================================= +params=params_default +params['shape']=(128,128) +sim=Simulator(params) +T=50 + +Sum,Bubbles,Tissue=sim.generate(T) + + +data={'Sum':Sum, 'S':Bubbles, 'L':Tissue} +savemat('SampleData.mat',data) + -- GitLab