From 2a99f17c7e0f39e87bc911de35cc40f7b5b9f931 Mon Sep 17 00:00:00 2001 From: GeorgeEvans0 <95158116+GeorgeEvans0@users.noreply.github.com> Date: Tue, 25 Oct 2022 17:17:56 -0600 Subject: [PATCH] Updating D_time self.D_time[filename] was defined such that, even though it didn't start until one data point after the valve opened, the first data point was set such that t=0. Now, the first time in the PP tab is set to one timestep after zero, which generates better fits that has the additive time constant approximately equal zero. This commit brings mimics a similar commit made to HyPAT v2.0 yesterday. --- HyPAT/source_code/permeation_plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HyPAT/source_code/permeation_plots.py b/HyPAT/source_code/permeation_plots.py index df3bc75..3ad6b86 100644 --- a/HyPAT/source_code/permeation_plots.py +++ b/HyPAT/source_code/permeation_plots.py @@ -1052,7 +1052,7 @@ def calculate_diffusivity(self, filename, data): (R * (self.Tg_mean.loc[self.t0[filename] + 1:self.tss[filename] + self.ss_range[filename]].to_numpy() + self.storage.standard_temp) * self.A_perm.get()) self.D_time[filename] = data.loc[self.t0[filename] + 1:self.tss[filename] + self.ss_range[filename], 't'] - \ - data.loc[self.t0[filename] + 1, 't'] + data.loc[self.t0[filename], 't'] J0 = np.mean(data.loc[self.t0[filename] - self.leak_range[filename]:self.t0[filename] - 1, 'dSecP']) * \ self.volume.get() / (R * self.Tg0[filename] * self.A_perm.get()) # leak rate Jinf = np.mean(data.loc[self.tss[filename] + 1: