Skip to content
Snippets Groups Projects
Commit 8f5a9da7 authored by Olivier Sauter's avatar Olivier Sauter
Browse files

start fixing complete_IDS so can ask questions on gitlab...

avoid time at 2 places
parent 1377f2f5
No related branches found
No related tags found
2 merge requests!50Fix complete ids corsica keep ids structures,!48Fix complete ids corsica keep ids structures
Pipeline #31654 passed
...@@ -65,6 +65,9 @@ end ...@@ -65,6 +65,9 @@ end
tmp = data_circuits(); tmp = data_circuits();
Ncircuits = size(tmp,1); Ncircuits = size(tmp,1);
Ncoils = numel(IDS_out.pf_active.coil); Ncoils = numel(IDS_out.pf_active.coil);
% time will be set in circuit.current.time so should not put it at top and set homogeneous to 0?
IDS_out.pf_active.time = [];
IDS_out.pf_active.ids_properties.homogeneous_time = 0;
for ii=1:Ncircuits for ii=1:Ncircuits
IDS_out.pf_active.circuit{ii}.name = tmp{ii,1}{1}; IDS_out.pf_active.circuit{ii}.name = tmp{ii,1}{1};
IDS_out.pf_active.supply{ii}.name = tmp{ii,1}{1}; IDS_out.pf_active.supply{ii}.name = tmp{ii,1}{1};
......
  • Author Maintainer

    @carpanes Seems pf_active.time (51 points) is the same as pf_active.coil{index_coil(1)}.current.time so if set in coil should remove from top and set homogeneous to 0. OK?

  • Developer

    At a first glance I would say that all the currents share the same time, so we could also put homogeneous = 1 , and provide the time directly there, removing the other one. However, the field pf_active.coil{ii}.current.data and pf_active.coil{ii}.current.time was filled this way by CORSICA data originally so we might not want to change remove the original data.

  • Author Maintainer

    Yes better keep local tim/data

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment