Skip to content

Commit

Permalink
Formatting and test code fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcb-hsu committed May 8, 2023
1 parent 3b89397 commit 4f829ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pgfutils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2018, 2019, 2020, 2021, 2022 Blair Bonnett
# Copyright 2018, 2019, 2020, 2021, 2022, 2023 Blair Bonnett
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
Expand Down Expand Up @@ -1027,7 +1027,6 @@ def save(figure=None):

# Postprocess the figure, moving it into the final destination.
with open(mpname, "r") as infile, open(figname, "w") as outfile:

# Make some modifications to the header.
line = infile.readline()
while line[0] == "%":
Expand Down
2 changes: 1 addition & 1 deletion tests/sources/tracking/netcdf4/netcdf4.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@


ds = netCDF4.Dataset("sine.nc")
plt.plot(ds["time"], ds["voltage"])
plt.plot(ds["time"][:], ds["voltage"][:])

save()
2 changes: 1 addition & 1 deletion tests/sources/tracking/netcdf4_in_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@


ds = netCDF4.Dataset("netcdf4/sine.nc")
plt.plot(ds["time"], ds["voltage"])
plt.plot(ds["time"][:], ds["voltage"][:])

save()

0 comments on commit 4f829ea

Please sign in to comment.