Skip to content

Commit

Permalink
Raise error in block_check for wrong/unknown chip type
Browse files Browse the repository at this point in the history
  • Loading branch information
noemifrisina committed Jun 22, 2023
1 parent 6fb1d80 commit cbdc720
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1149,8 +1149,10 @@ def block_check():
chip_type = int(caget(pv.me14e_gp1))
if chip_type == 9:
block_start_list = scrape_pvar_file("minichip_oxford.pvar")
if chip_type == 10:
elif chip_type == 10:
block_start_list = scrape_pvar_file("oxford6x6.pvar")
else:
raise ValueError("Invalid chip type")
for entry in block_start_list:
if int(caget(pv.me14e_gp9)) != 0:
logger.warning("%s Block Check Aborted" % (name))
Expand Down

0 comments on commit cbdc720

Please sign in to comment.