Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding
#1
Exclamation 
Hey guys,
I am new to coding and getting some errors. I am sure it is quite simple for someone with more experience.
Thank you for your help

 # create blank datasets
    nparam = 11; #Fill number of parameters
    K = zeros(npool,npool);
    A = zeros(npool,npool); 
    stdev=zeros(Nt,npool);
    J_last= 30000000;
    
    stdev[:,1] = pusd[:,1];
    
    for i in range (1,Nt):
     for j in range (2,npool):
      stdev(i,j) = ppsd(i,j-1);
end
end

    DJ=2*stdev.^2;                      #### IndentationError: unexpected indent
    T1P = zeros(day(Nt),npool);
    T1R = zeros(day(Nt),npool);
    T1C = zeros(day(Nt),npool);
    T1fR = zeros(day(Nt),npool);
    resp_mod1 = zeros(day(Nt),npool);

    params_diff = params_max-params_min;
    f_diff = f_max-f_min;

    params_op = params_init;
    params_new = params_init;
    
    f_op = f_init;
    f_new = f_init;
    
    opo_op = opo_init;
    opo_new = opo_init;
Gribouillis write Dec-06-2021, 11:04 AM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Reply


Messages In This Thread
coding - by ecovrefoltr - Dec-06-2021, 10:56 AM
RE: coding - by ibreeden - Dec-06-2021, 12:13 PM
RE: coding - by ecovrefoltr - Dec-06-2021, 01:42 PM
RE: coding - by Axel_Erfurt - Dec-06-2021, 01:53 PM
RE: coding - by ibreeden - Dec-06-2021, 05:48 PM
RE: coding - by deanhystad - Dec-06-2021, 06:10 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020