Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Oct 12, 2024
1 parent 7dca9c5 commit 0a1cfb0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Exec/science/xrb_spherical/analysis/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@ def slice(fname:str, field:str, loc:str="top") -> None:

if len(sys.argv) < 3:
raise Exception("Please enter parameters in order of: fname field_name loc[optional]")

fname = sys.argv[1]
field = sys.argv[2]
loc = "top"

if len(sys.argv) > 3:
loc = sys.argv[3]

Expand Down

0 comments on commit 0a1cfb0

Please sign in to comment.