Skip to content

Commit

Permalink
Merge pull request #27 from MG-ng/patch-7
Browse files Browse the repository at this point in the history
fn -> file_name
  • Loading branch information
marinlauber authored Jan 17, 2024
2 parents e56f8c7 + e942cac commit 2fd978d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HydroMod.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _get_RmV(self, vb):
# a[i] = self.interp_a[i](fn)
# return a

def show_resistance(self, vb):
def show_resistance(self, vb, file_name="None"):
resV, resR = np.empty_like(vb), np.empty_like(vb)
for i, v in enumerate(vb):
self.vb = v * 0.5144
Expand All @@ -200,8 +200,8 @@ def show_resistance(self, vb):
plt.ylabel(r"$R$ (N)")
plt.legend()
plt.tight_layout()
if fn!="None":
plt.savefig(fn, dpi=300)
if file_name != "None":
plt.savefig(file_name, dpi=300)
plt.show()

def _test_gz(self):
Expand Down

0 comments on commit 2fd978d

Please sign in to comment.