Skip to content
Snippets Groups Projects

Resolve "core_profiles.profiles_1d[0].ion[0].label"

Merged Matteo Vallar requested to merge 37-core_profiles-profiles_1d-0-ion-0-label into master

Closes #37 (closed) #36

Edited by Olivier Sauter

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Matteo Vallar changed the description

    changed the description

  • Author Contributor

    @osauter

    L 46 of tcv_get_ids_summary it tries to remove the offsets with this lines

    params_eff.data_request='ip_trapeze';
    ip_trapeze = gdat(params_summary.shot,params_eff);
    ipsign = mdsvalue('\pcs::data:iohfb');
    i_t_end = find(ipsign.*ip_trapeze.data(end:-1:1) > 5e3); % an offset might cause a problem...
    i_t_end = length(ip_trapeze.t)-i_t_end(1)+2; 
    t_end = ip_trapeze.t(i_t_end);

    This gives me errors when doing [ids_from_tcv,varargout] = tcv2ids(68587, 'time_out', [1, 1.1, 1.2, 1.3]);

    Index exceeds matrix dimensions.
    
    Error in tcv_get_ids_summary (line 47)
    t_end = ip_trapeze.t(i_t_end);

    Why is this line

    i_t_end = length(ip_trapeze.t)-i_t_end(1)+2;

    not like this?

    i_t_end = length(ip_trapeze.t)-i_t_end(1)+1;

  • Good question... I'll check

  • Olivier Sauter added 1 commit

    added 1 commit

    • df21c210 - correct index search for end of Iptraeze, as well as label pisitioning in ion core_profiles

    Compare with previous version

  • Olivier Sauter marked this merge request as ready

    marked this merge request as ready

Please register or sign in to reply
Loading