Skip to content

Commit

Permalink
Minor fixes for experiments files
Browse files Browse the repository at this point in the history
  • Loading branch information
LisIva committed Oct 8, 2023
1 parent eeb0f6a commit 5fe4251
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions experiment_burgers.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def hash_term(term):
num_found_eq.append(len(difference_ls))
print('Overall time is:', time1)
print(f'Iteration processed: {i+1}/{max_iter_number}\n')
i += 1
time_ls.append(time1)

if write_csv:
Expand Down
1 change: 1 addition & 0 deletions experiment_burgers_sindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def hash_term(term):
num_found_eq.append(len(difference_ls))
print('Overall time is:', time1)
print(f'Iteration processed: {i+1}/{max_iter_number}\n')
i += 1
time_ls.append(time1)

if write_csv:
Expand Down
4 changes: 2 additions & 2 deletions experiment_kdv.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ def hash_term(term):
if len(difference_ls) != 0:
differences_ls.append(min(difference_ls))
mean_diff_ls += difference_ls
# else:
# differences_ls.append(None)

num_found_eq.append(len(difference_ls))

print('Overall time is:', time1)
print(f'Iteration processed: {i+1}/{max_iter_number}\n')
time_ls.append(time1)
i += 1

if write_csv:
arr = np.array([differences_ls, time_ls, num_found_eq])
Expand Down
1 change: 1 addition & 0 deletions experiment_kdv_sindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def hash_term(term):
num_found_eq.append(len(difference_ls))
print('Overall time is:', time1)
print(f'Iteration processed: {i+1}/{max_iter_number}\n')
i += 1
time_ls.append(time1)

if write_csv:
Expand Down
1 change: 1 addition & 0 deletions experiment_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def hash_term(term):
num_found_eq.append(len(difference_ls))
print('Overall time is:', time1)
print(f'Iteration processed: {i+1}/{max_iter_number}\n')
i += 1
time_ls.append(time1)

if write_csv:
Expand Down

0 comments on commit 5fe4251

Please sign in to comment.