Skip to content

Commit

Permalink
Removed debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervandenDoel authored Jun 29, 2024
1 parent 36ad978 commit d149bfc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions app/SiEPIC_TestCreator/sequencecreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,8 +1265,8 @@ def create_devices_from_file(self, file_path):
x, y, device_id = line.split(", ")


print("device ID is")
print(device_id)
#print("device ID is")
#print(device_id)
# #"If its clean with no underscores, add pad to device dictonary"
# if("_" not in device_id):
# elec_coords = ['G', float(x), float(y)]
Expand Down Expand Up @@ -1314,33 +1314,33 @@ def create_devices_from_file(self, file_path):
#We need to strip away the ground label at the end though
device_id = device_id.replace("_G1", "")

print("new device ID is")
print(device_id)
#print("new device ID is")
#print(device_id)
#Now we should be fine to add the electrical coordinates To our device dictionary
print("attempting to append device")
#print("attempting to append device")
elec_coords = ['G', float(x), float(y)]
devices_dict[device_id].add_electrical_coordinates(elec_coords)
print("appended successfully")
#print("appended successfully")

elif(device_id.endswith("_G")):
device_id = device_id.replace("_G", "")


print("new device ID is")
print(device_id)
#print("new device ID is")
#print(device_id)

print("attempting to append device")
#print("attempting to append device")
elec_coords = ['G', float(x), float(y)]
devices_dict[device_id].add_electrical_coordinates(elec_coords)
print("appended successfully")
#print("appended successfully")


else: #If there is none of these ground labels then we can just try to add the coordinates and Throw exceptions if there are any other errors

print("attempting to append device")
#print("attempting to append device")
elec_coords = ['G', float(x), float(y)]
devices_dict[device_id].add_electrical_coordinates(elec_coords)
print("appended successfully")
#print("appended successfully")

except:
print(
Expand Down

0 comments on commit d149bfc

Please sign in to comment.