Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Oct 16, 2024
1 parent 15ed991 commit 321fd68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Exec/science/xrb_spherical/analysis/slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@ def slice(fname:str, field:str,
if __name__ == "__main__":

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

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

if len(sys.argv) == 4:
loc = sys.argv[3]
width_factor = float(sys.argv[3])
elif len(sys.argv) > 4:
width_factor = float(sys.argv[4])
loc = sys.argv[4]

slice(fname, field, loc=loc, width_factor=width_factor)

0 comments on commit 321fd68

Please sign in to comment.