jacometoss/PyEWS

View on GitHub

Showing 121 of 173 total issues

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorAl)):
            CM=round(dbConductorAl[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorAl)):
            CM=round(dbConductorAl[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 67..69
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 16 locations. Consider refactoring.
Open

        for i in range(len(dbConductorCu)):
            CM=round(dbConductorCu[i][10]*1973.525241,2)
            datos[i].append(round(math.sqrt(((pow(CM,2)*(k*math.log10((T2+234)/(T1+234)))))/t)/1000,2))
Severity: Major
Found in electricalwiresizes/shortcircuit.py and 15 other locations - About 7 hrs to fix
electricalwiresizes/shortcircuit.py on lines 57..59
electricalwiresizes/shortcircuit.py on lines 62..64
electricalwiresizes/shortcircuit.py on lines 71..73
electricalwiresizes/shortcircuit.py on lines 76..78
electricalwiresizes/shortcircuit.py on lines 81..83
electricalwiresizes/shortcircuit.py on lines 86..88
electricalwiresizes/shortcircuit.py on lines 91..93
electricalwiresizes/shortcircuit.py on lines 126..128
electricalwiresizes/shortcircuit.py on lines 131..133
electricalwiresizes/shortcircuit.py on lines 136..138
electricalwiresizes/shortcircuit.py on lines 140..142
electricalwiresizes/shortcircuit.py on lines 145..147
electricalwiresizes/shortcircuit.py on lines 150..152
electricalwiresizes/shortcircuit.py on lines 155..157
electricalwiresizes/shortcircuit.py on lines 160..162

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 121.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                elif (To==90):
                    
                    if ((round(datos[i][7],3)*FA*FT90>=In) and (((round(datos[i][7],3))/In)>Fcond)):
                        datos[i].append('Yes')
                    else:
Severity: Major
Found in electricalwiresizes/mbtal.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtal.py on lines 320..325
electricalwiresizes/mbtal.py on lines 327..332

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 104.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                elif (To==75):

                    if ((round(datos[i][6],3)*FA*FT75>=In) and (((round(datos[i][6],3))/In)>Fcond)):
                        datos[i].append('Yes')
                    else:
Severity: Major
Found in electricalwiresizes/mbtal.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtal.py on lines 320..325
electricalwiresizes/mbtal.py on lines 335..340

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 104.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

                if (To==60):

                    if ((round(datos[i][5],3)*FA*FT60>=In) and (((round(datos[i][5],3))/In)>Fcond)):
                        datos[i].append('Yes')
                    else:
Severity: Major
Found in electricalwiresizes/mbtal.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtal.py on lines 327..332
electricalwiresizes/mbtal.py on lines 335..340

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 104.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            if (To==60):
                if ((round(datos[i][2],3)*FT60>=(In)) and (((round(datos[i][2],3))/In)>=Fcond)):
                    datos[i].append('Yes')
                else:
                    datos[i].append('Not')
Severity: Major
Found in electricalwiresizes/mbtcustd.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtcustd.py on lines 118..122
electricalwiresizes/mbtcustd.py on lines 123..127

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 98.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            elif (To==75):
                if ((round(datos[i][3],3)*FT75>=(In)) and (((round(datos[i][3],3))/In)>=Fcond)):
                    datos[i].append('Yes')
                else:
                    datos[i].append('Not')
Severity: Major
Found in electricalwiresizes/mbtcustd.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtcustd.py on lines 112..116
electricalwiresizes/mbtcustd.py on lines 123..127

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 98.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

            elif (To==90):
                if ((round(datos[i][4],3)*FT90>=(In)) and (((round(datos[i][4],3))/In)>=Fcond)):
                    datos[i].append('Yes')
                else:
                    datos[i].append('Not')
Severity: Major
Found in electricalwiresizes/mbtcustd.py and 2 other locations - About 6 hrs to fix
electricalwiresizes/mbtcustd.py on lines 112..116
electricalwiresizes/mbtcustd.py on lines 118..122

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 98.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    for i in range(len(dtb)-1,-1,-1):
        #print ("Valor sumado: ",dtb[i][9]*dtb[i][11], "Index_",i)
        Isuma = (dtb[i][12]/(dtb[i][6]*dtb[i][7]))
        dtb[i].append(round(Isuma,3))    
Severity: Major
Found in electricalwiresizes/distributioncu.py and 1 other location - About 5 hrs to fix
electricalwiresizes/distributional.py on lines 88..91

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    for i in range(len(dtb)-1,-1,-1):
        #print ("Valor sumado: ",dtb[i][9]*dtb[i][11], "Index_",i)
        Isuma = (dtb[i][12]/(dtb[i][6]*dtb[i][7]))
        dtb[i].append(round(Isuma,3))    
Severity: Major
Found in electricalwiresizes/distributional.py and 1 other location - About 5 hrs to fix
electricalwiresizes/distributioncu.py on lines 88..91

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 95.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    if view==1:
        print(tabulate(dtb,headers=["Punto","Cal.", "Fases", "D[m]", "P[W]","Fp", "T[V]", "Kcable", "In", "Psum+", "Dsum", "Is", "[Is][D]", "%Vd","%Vd+-"],tablefmt="psql"))
    elif view==2:
        print(dtb)
    else:
Severity: Major
Found in electricalwiresizes/distributional.py and 1 other location - About 4 hrs to fix
electricalwiresizes/distributioncu.py on lines 100..105

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 85.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Identical blocks of code found in 2 locations. Consider refactoring.
Open

    if view==1:
        print(tabulate(dtb,headers=["Punto","Cal.", "Fases", "D[m]", "P[W]","Fp", "T[V]", "Kcable", "In", "Psum+", "Dsum", "Is", "[Is][D]", "%Vd","%Vd+-"],tablefmt="psql"))
    elif view==2:
        print(dtb)
    else:
Severity: Major
Found in electricalwiresizes/distributioncu.py and 1 other location - About 4 hrs to fix
electricalwiresizes/distributional.py on lines 100..105

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 85.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 8 locations. Consider refactoring.
Open

    for i in range(len(dbConductorCu)):
         Zunitaria=Z(round(Rn(dbConductorCu[i][Rj],Ta),4),dbConductorCu[i][Xj],Fp)
         datos[i].append(Zunitaria[2])
Severity: Major
Found in electricalwiresizes/mbtcu.py and 7 other locations - About 4 hrs to fix
electricalwiresizes/mbtal.py on lines 78..80
electricalwiresizes/mbtal.py on lines 82..84
electricalwiresizes/mbtal.py on lines 86..88
electricalwiresizes/mbtal.py on lines 90..92
electricalwiresizes/mbtcu.py on lines 83..85
electricalwiresizes/mbtcu.py on lines 87..89
electricalwiresizes/mbtcu.py on lines 95..97

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 80.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language