Skip to content

Commit

Permalink
Remove parser from chip collect
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jun 22, 2023
1 parent b7608c7 commit 6fb1d80
Showing 1 changed file with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
from __future__ import annotations

import argparse
import inspect
import logging
import os
Expand Down Expand Up @@ -589,11 +588,11 @@ def finish_i24(chip_prog_dict, start_time):
return end_time


def main(args):
def main():
# ABORT BUTTON
name = inspect.stack()[0][3]
logger.info("%s" % name)
logger.info("%s Location is %s \n Starting" % (name, args.loc))
logger.info("%s Location is I24 \n Starting" % name)
caput(pv.me14e_gp9, 0)

(
Expand Down Expand Up @@ -663,13 +662,7 @@ def main(args):
logger.info("%s Loading Motion Program Data" % (name))
load_motion_program_data(chip_prog_dict, map_type, pump_repeat)

if args.loc == "i24":
start_time, dcid = start_i24()
else:
logger.warning(
"%s This does nothing location not I24 \n location = %s" % (name, args.loc)
)
print("Something went wrong. Location not specified")
start_time, dcid = start_i24()

print("Moving to Start")
logger.info("%s Moving to start" % (name))
Expand Down Expand Up @@ -764,15 +757,4 @@ def main(args):
if __name__ == "__main__":
setup_logging()

parser = argparse.ArgumentParser(usage=usage, description=__doc__)
parser.add_argument(
"-l",
"--loc",
type=str,
choices=["i24"],
default="i24",
help="Location of collection.",
)

args = parser.parse_args()
main(args)
main()

0 comments on commit 6fb1d80

Please sign in to comment.