Changeset 386 for experiments/frams


Ignore:
Timestamp:
05/22/15 18:46:17 (9 years ago)
Author:
Maciej Komosinski
Message:

Updated for Python 3 and new Framsticks message format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/multi-threading/test-mt-plots.py

    r116 r386  
    1818                        threads,capacity,slownik=wynik
    1919                        if slownik['iter']==iteracja:
    20                                 print threads,capacity,slownik[atrybut] if atrybut in slownik else np.nan
     20                                print(threads,capacity,slownik[atrybut] if atrybut in slownik else np.nan)
    2121                                threadsindex=threadsy.index(threads)
    2222                                capacitiesindex=capacitiesy.index(capacity)
    2323                                Z[capacitiesindex,threadsindex]=slownik[atrybut] if atrybut in slownik else np.nan
    24                 print Z
     24                print(Z)
    2525                ktore=len(kolory)-len(iteracje)+i
    2626                ax.plot_surface(X, Y, Z, rstride=1, cstride=1, color=kolory[ktore], linewidth=1, alpha=alfy[ktore],edgecolor=(0,0,0,alfy[ktore]))
     
    5757                for linia in plik:
    5858                        linia=linia.strip()
    59                         if linia.startswith("[INFO] Script::Message - iter="):
     59                        if linia.startswith("Script.Message: iter="):
    6060                                slownik={}
    6161                                for pole in linia.split(' '):
     
    6464                                                pole=pole.split('=')
    6565                                                slownik[pole[0]]=float(pole[1])
    66                                 print slownik
     66                                print(slownik)
    6767                                slowniki.append(slownik)
    6868                                wyniki.append((threads,capacity,slownik))
     
    7171threadsy=sorted(list(threadsy))
    7272capacitiesy=sorted(list(capacitiesy))
    73 print threadsy
    74 print capacitiesy
     73print(threadsy)
     74print(capacitiesy)
    7575
    7676wykres(threadsy,capacitiesy,wyniki,[3.0,6.0,9.0],'simsteps')
Note: See TracChangeset for help on using the changeset viewer.