Skip to content

Commit

Permalink
flake python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorbert committed Feb 6, 2019
1 parent c56bc69 commit 5988b23
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
11 changes: 5 additions & 6 deletions bindings/Matlab/test/test1_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
varCols = io.InquireVariable("ncols")
fr.Get(varCols, ncols)

note="_______________________________________"
note = "_______________________________________"
varNote = io.InquireVariable("note")
fr.Get(varNote, note, adios2.Mode.Sync)

Expand All @@ -50,11 +50,10 @@
print("# of cols = {0}".format(ncols[0]))
print("Note = {0}".format(note))
#
#inTemperatures = fr.read("temperature2D")
#print("temperature2d array size = " + str(inTemperatures.size))
# inTemperatures = fr.read("temperature2D")
# print("temperature2d array size = " + str(inTemperatures.size))
#
#for row in inTemperatures:
# print(''.join(['{:7}'.format(item) for item in row]))
# for row in inTemperatures:
# print(''.join(['{:7}'.format(item) for item in row]))
#
fr.Close()

1 change: 0 additions & 1 deletion bindings/Matlab/test/test1_read_hl.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,3 @@
print(''.join(['{:7}'.format(item) for item in row]))

fr.close()

5 changes: 1 addition & 4 deletions bindings/Matlab/test/test1_write.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
io.DefineAttribute("aaa", numpy.array([3.1415]))
io.DefineAttribute("anote", "just a string")
io.DefineAttribute("adimnames", ["rows", "columns"])
npdims = numpy.array([NRows,NCols], dtype=numpy.int32)
npdims = numpy.array([NRows, NCols], dtype=numpy.int32)
io.DefineAttribute("adims", npdims)


Expand All @@ -54,6 +54,3 @@
fw.Put(varRows, nprows)
fw.Put(varT, temperatures)
fw.Close()



1 change: 0 additions & 1 deletion bindings/Matlab/test/test1_write_hl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@
fw.write("nrows", numpy.array([NRows]))
fw.write("ncols", numpy.array([NCols]))
fw.close()

0 comments on commit 5988b23

Please sign in to comment.