Ejemplo n.º 1
0
def plot_3d_2datasets(h5File):

    dict = oh.main(h5File)

    x_data = dict.get("entry01")
    x = np.reshape(x_data.get("Qx"), 16384)
    y = np.reshape(x_data.get("Qy"), 16384)
    z = x_data.get("I")
    I_file1 = np.reshape(z[0], 16384)
    I_file2 = np.reshape(z[1], 16384)

    p.plot3d_from_array(x, y, I_file1, I_file2)
Ejemplo n.º 2
0
def make_dict():

    file_to_read = which_file()
    dictionary = oh.main(file_to_read)

    if dictionary != None:

        all_dictionary = dictionary.keys()

        # print all_dictionary

        first_entry = dictionary.get("entry01")
        return first_entry

    else:
        print "Dictionary was not produced"