Skip to content

Commit

Permalink
Update logger names to reflect changes in clawpack/pyclaw#382.
Browse files Browse the repository at this point in the history
  • Loading branch information
ketch committed Mar 23, 2014
1 parent a17971c commit 2e34236
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions 1d/dry_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def dry_state(num_cells,eigen_method,entropy_fix,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down Expand Up @@ -146,4 +146,4 @@ def dry_state(num_cells,eigen_method,entropy_fix,**kargs):
if __name__ == "__main__":
# Run test case for eigen method = 2 turning on and off entropy fix
# dry_state(500,2,True)
dry_state(500,2,False,htmlplot=True)
dry_state(500,2,False,htmlplot=True)
2 changes: 1 addition & 1 deletion 1d/internal_lapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def internal_lapping(num_cells,eigen_method,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down
4 changes: 2 additions & 2 deletions 1d/oscillatory.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def oscillatory_wind(num_cells,eigen_method,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down Expand Up @@ -144,4 +144,4 @@ def oscillatory_wind(num_cells,eigen_method,**kargs):


if __name__ == "__main__":
oscillatory_wind(100,2,htmlplot=True)
oscillatory_wind(100,2,htmlplot=True)
4 changes: 2 additions & 2 deletions 1d/rarefaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def rarefaction(num_cells,eigen_method,entropy_fix,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down Expand Up @@ -149,4 +149,4 @@ def rarefaction(num_cells,eigen_method,entropy_fix,**kargs):
file_format=controller.output_format,**plot_kargs)

if __name__ == "__main__":
rarefaction(100,2,False,iplot=False,htmlplot=True)
rarefaction(100,2,False,iplot=False,htmlplot=True)
4 changes: 2 additions & 2 deletions 1d/shelf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def jump_shelf(num_cells,eigen_method,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down Expand Up @@ -281,4 +281,4 @@ def sloped_shelf(num_cells,eigen_method,**kargs):
for method in eig_methods:
jump_shelf(2000,method,iplot=False,htmlplot=True)
for method in eig_methods:
sloped_shelf(2000,method,iplot=False,htmlplot=True)
sloped_shelf(2000,method,iplot=False,htmlplot=True)
2 changes: 1 addition & 1 deletion 1d/wave_family.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def wave_family(num_cells,eigen_method,wave_family,dry_state=True,**kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down
4 changes: 2 additions & 2 deletions 1d/well_balanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def smooth_test(eigen_method, dry=False, **kargs):

# Redirect loggers
# This is not working for all cases, see comments in runclaw.py
for logger_name in ['io','solution','plot','evolve','f2py','data']:
for logger_name in ['pyclaw.io','spyclaw.olution','plot','pyclaw.solver','f2py','data']:
runclaw.replace_stream_handlers(logger_name,log_path,log_file_append=False)

# Load in appropriate PyClaw version
Expand Down Expand Up @@ -276,4 +276,4 @@ def jump_test(eigen_method, dry=False, **kargs):
for dry in [True, False]:
for method in eig_methods:
smooth_test(method, dry=dry, iplot=False, htmlplot=True)
jump_test(method, dry=dry, iplot=False, htmlplot=True)
jump_test(method, dry=dry, iplot=False, htmlplot=True)

0 comments on commit 2e34236

Please sign in to comment.