Skip to content

Commit

Permalink
Update Postcode.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinAchondo authored Jun 20, 2024
1 parent 5eb585c commit 912fe54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xppbe/Post/Postcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,9 @@ def plot_line_interface(self,N=1000, plot='u',value='phi', nn=np.array([0,1,0]))

def save_values_file(self,save=True,L2_err_method='analytic_Born_Ion'):

L2_analytic = self.L2_interface_known('analytic_Born_Ion')
if L2_err_method is None:
L2_err_method = 'analytic_Born_Ion'
L2_analytic = self.L2_interface_known(L2_err_method)

df_dict = super().save_values_file(save=False)
df_dict['L2_analytic'] = '{:.3e}'.format(float(L2_analytic))
Expand Down

0 comments on commit 912fe54

Please sign in to comment.