Skip to content

Conversation

@Carmine12328
Copy link

@Carmine12328 Carmine12328 commented Jun 6, 2019

Fix Bug of Parameters Controls in cfg_altiumWorkspace and add Feature Group componets for footprint size(with test)

@Carmine12328 Carmine12328 changed the title Fix Bug of Parameters Controls in cfg_altiumWorkspace and add Feature Group componets for footprint size(with test) Fix Bug and add Feature to Group also for footprint Jun 6, 2019
lib/cfg.py Outdated

if not csv_file:
merge_file_item = os.path.join(path_file, bom_name) +'.xlsx'
if not csv_file:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non si poteva usare lo stesso if? c'è differenza a fare lo stesso controllo?

self.group()
self.count()
d = {}
listApp = []
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queste variabili vendono utilizzate fuori dal for? se no, perchè le dichiari qui e poi le usi solo all'interno dei cicli?


d = {}
i = 0
e = 0
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cosa sono i e? volevi fare l'elenco delle vocali? e poi dove vendono usate?

d[item[self.TABLE_FOOTPRINT]] = [item]

listApp.append(d.values())
for x in listApp[0]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queste due righe ce senso hanno? hai una lista di liste, o semplicemente una lista? non ha molto senso fare una lista di liste per un elemento solo e poi ciclare sul primo elemento della lista..

self.table[category], key=lambda x: x[
self.TABLE_COMMENT])
# Convert all ORDERED designator in a numeric format
if category in ["R", "C", "L", "Y"]:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questo penso che non ne hai bisogno, perchè stai già ciclando sulle categorie..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants