Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix IO.available_attributes(), remove a debug print from Stream, fix … #4021

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion examples/hello/sstReader/sstReader-bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@
sstReader.EndStep()

print(
"Rank=", rank, "loop index =", loopStep, "stream step =", currentStep, "data =", floatArray
"Rank=",
rank,
"loop index =",
loopStep,
"stream step =",
currentStep,
"data =",
floatArray,
flush=True,
)
loopStep = loopStep + 1

Expand Down
1 change: 1 addition & 0 deletions examples/hello/sstReader/sstReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@
currentStep,
"data =",
floatArray,
flush=True,
)
2 changes: 1 addition & 1 deletion examples/hello/sstWriter/sstWriter-bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

sstWriter = sstIO.Open("helloSst", adios2.Mode.Write)
for i in range(4):
print("Rank=", rank, "loop index =", i, "data =", myArray)
print("Rank=", rank, "loop index =", i, "data =", myArray, flush=True)
sstWriter.BeginStep()
sstWriter.Put(ioArray, myArray, adios2.Mode.Sync)
myArray += increment
Expand Down
2 changes: 1 addition & 1 deletion examples/hello/sstWriter/sstWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
sleep(1.0)

stream.write("bpFloats", myArray, [size * nx], [rank * nx], [nx])
print("Rank=", rank, "loop index =", currentStep, "data =", myArray)
print("Rank=", rank, "loop index =", currentStep, "data =", myArray, flush=True)
myArray += increment
# Warning: the data of the current step is not published until
# the next loop entry or the exit of the loop
5 changes: 1 addition & 4 deletions python/adios2/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ def available_attributes(self):
value
attribute information dictionary
"""
attributes = {}
for name, attr in self.impl.AvailableAttributes():
attributes[name] = Attribute(attr, name)
return attributes
return self.impl.AvailableAttributes()
vicentebolea marked this conversation as resolved.
Show resolved Hide resolved

def remove_attribute(self, name):
"""
Expand Down
4 changes: 0 additions & 4 deletions python/adios2/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,6 @@ def read(self, variable: Variable):

output_shape = np.array(count)
output_shape[0] *= steps
print(
f"Stream.read variable {variable.name()} dtype = {dtype} "
f"shape = {output_shape}, steps = {variable.steps()}"
)
else:
# scalar
output_shape = (variable.selection_size(),)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci/images/Dockerfile.ci-el8-intel
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN dnf install -y \
patch \
patchelf \
python39-devel \
python3-pip \
python39-pip \
tar \
tcl \
unzip \
Expand Down
Loading