saroele / awesim

Python module for management of Modelica simulation files in .mat format
46 stars 13 forks source link

Remove event-logging from result-file #24

Open rubenbaetens opened 10 years ago

rubenbaetens commented 10 years ago

I might be usefull to to have a script which removes event-logging from a simulation result file, rewriting it back to an equidistant grid file.

saroele commented 10 years ago

what would be the use case? Obtaining smaller arrays? Mind that to obtain correct 'sums', the events are needed to do a time-vector based integration.

It would not be hard at all to obtain an array with equidistant values only (pandas has a resampling fuction that does the job). We'd only have to make sure both energies, flowrates and temperatures (and all the rest) are treated correctly (aggregation based on mean, min/max, sum, ..?)

On Mon, Jun 2, 2014 at 9:30 AM, rubae notifications@github.com wrote:

I might be usefull to to have a script which removes event-logging from a simulation result file, rewriting it back to an equidistant grid file.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24.

rubenbaetens commented 10 years ago

The use case would be to be able to correctly compare simulation results achieved with different settings.

On Tue, Jun 3, 2014 at 9:25 AM, saroele notifications@github.com wrote:

what would be the use case? Obtaining smaller arrays? Mind that to obtain correct 'sums', the events are needed to do a time-vector based integration.

It would not be hard at all to obtain an array with equidistant values only (pandas has a resampling fuction that does the job). We'd only have to make sure both energies, flowrates and temperatures (and all the rest) are treated correctly (aggregation based on mean, min/max, sum, ..?)

On Mon, Jun 2, 2014 at 9:30 AM, rubae notifications@github.com wrote:

I might be usefull to to have a script which removes event-logging from a simulation result file, rewriting it back to an equidistant grid file.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24#issuecomment-44927794.

saroele commented 10 years ago

so you would like to see the events removed, and the other values unchanged. Looks like an option of the pandas resample function.

On Tue, Jun 3, 2014 at 9:26 AM, rubae notifications@github.com wrote:

The use case would be to be able to correctly compare simulation results achieved with different settings.

On Tue, Jun 3, 2014 at 9:25 AM, saroele notifications@github.com wrote:

what would be the use case? Obtaining smaller arrays? Mind that to obtain correct 'sums', the events are needed to do a time-vector based integration.

It would not be hard at all to obtain an array with equidistant values only (pandas has a resampling fuction that does the job). We'd only have to make sure both energies, flowrates and temperatures (and all the rest) are treated correctly (aggregation based on mean, min/max, sum, ..?)

On Mon, Jun 2, 2014 at 9:30 AM, rubae notifications@github.com wrote:

I might be usefull to to have a script which removes event-logging from a simulation result file, rewriting it back to an equidistant grid file.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24#issuecomment-44927794.

— Reply to this email directly or view it on GitHub https://github.com/saroele/awesim/issues/24#issuecomment-44927924.