avaframe/AvaFrame

View on GitHub

Showing 659 of 978 total issues

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

            if cfgRangeTime['GENERAL'].getboolean('originStart'):
                rangeValue = rasterTransfo['s'][cLower]
            else:
                rangeValue = rasterTransfo['s'][cLower] - rasterTransfo['s'][indStartOfRunout]
Severity: Major
Found in avaframe/ana5Utils/distanceTimeAnalysis.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 6 locations. Consider refactoring.
Open

        splitPoint['y'] = splitPoint['y'] + dem['originalHeader']['yllcenter']
Severity: Major
Found in avaframe/ana5Utils/DFAPathGeneration.py and 5 other locations - About 45 mins to fix
avaframe/ana5Utils/DFAPathGeneration.py on lines 601..601
avaframe/ana5Utils/DFAPathGeneration.py on lines 603..603
avaframe/ana5Utils/DFAPathGeneration.py on lines 604..604
avaframe/com3Hybrid/com3Hybrid.py on lines 107..107
avaframe/com3Hybrid/com3Hybrid.py on lines 108..108

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 35.

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 4 locations. Consider refactoring.
Open

        Lx = (Pointx[i] - header['xllcenter']) / header['cellsize']
Severity: Major
Found in avaframe/in2Trans/shpConversion.py and 3 other locations - About 45 mins to fix
avaframe/in2Trans/shpConversion.py on lines 301..301
avaframe/in2Trans/shpConversion.py on lines 302..302
avaframe/in2Trans/shpConversion.py on lines 344..344

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 35.

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 10 locations. Consider refactoring.
Open

    deltaz = rasterTransfo['z'][indVelStart] - rasterTransfo['z'][indVelZero]
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 10 locations. Consider refactoring.
Open

    deltasBeta = rasterTransfo['s'][indStartOfRunout] - rasterTransfo['s'][indVelStart]
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310

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 35.

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 10 locations. Consider refactoring.
Open

    deltas = rasterTransfo['s'][indVelZero] - rasterTransfo['s'][indVelStart]
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 10 locations. Consider refactoring.
Open

    deltas = rasterTransfo['s'][indVelZero] - rasterTransfo['s'][indVelStart]
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 10 locations. Consider refactoring.
Open

    deltaS = avaProfileMass['s'][indEnd] - avaProfileMass['s'][indStart]
Severity: Major
Found in avaframe/ana1Tests/energyLineTest.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 10 locations. Consider refactoring.
Open

    deltaz = rasterTransfo['z'][indVelStart] - rasterTransfo['z'][indVelZero]
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 528..529
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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 10 locations. Consider refactoring.
Open

        if mtiInfo['sType'].lower() == 'parallel':
            rangeValue = rasterTransfo['sParallel'][cLower] - rasterTransfo['sParallel'][indStartOfRunout]
Severity: Major
Found in avaframe/ana5Utils/distanceTimeAnalysis.py and 9 other locations - About 45 mins to fix
avaframe/ana1Tests/energyLineTest.py on lines 251..251
avaframe/ana1Tests/energyLineTest.py on lines 252..252
avaframe/ana5Utils/distanceTimeAnalysis.py on lines 531..534
avaframe/out3Plot/outAIMEC.py on lines 1186..1186
avaframe/out3Plot/outAIMEC.py on lines 1187..1187
avaframe/out3Plot/outAIMEC.py on lines 1307..1307
avaframe/out3Plot/outAIMEC.py on lines 1308..1308
avaframe/out3Plot/outAIMEC.py on lines 1310..1310
avaframe/out3Plot/outAIMEC.py on lines 1311..1311

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 35.

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

    fig1, ax1 = plt.subplots(figsize=(2 * pU.figW, 2 * pU.figH))
Severity: Minor
Found in avaframe/out3Plot/outAna1Plots.py and 1 other location - About 45 mins to fix
avaframe/out3Plot/outAna1Plots.py on lines 1296..1296

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 35.

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

                resAnalysisDF[resType + 'CrossMin'] = resAnalysisDF[resType + 'CrossMax'].astype(object)
Severity: Major
Found in avaframe/ana3AIMEC/ana3AIMEC.py and 2 other locations - About 45 mins to fix
avaframe/ana3AIMEC/ana3AIMEC.py on lines 343..343
avaframe/ana3AIMEC/ana3AIMEC.py on lines 347..347

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 35.

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

    zNew = z[ind] + cos * e1z + sin * e2z
Severity: Major
Found in avaframe/com1DFA/particleTools.py and 2 other locations - About 45 mins to fix
avaframe/com1DFA/particleTools.py on lines 606..606
avaframe/com1DFA/particleTools.py on lines 607..607

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 35.

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 4 locations. Consider refactoring.
Open

        Ly = (coordy[i] - header['yllcenter']) / header['cellsize']
Severity: Major
Found in avaframe/in2Trans/shpConversion.py and 3 other locations - About 45 mins to fix
avaframe/in2Trans/shpConversion.py on lines 301..301
avaframe/in2Trans/shpConversion.py on lines 343..343
avaframe/in2Trans/shpConversion.py on lines 344..344

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 35.

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 4 locations. Consider refactoring.
Open

        Lx = (coordx[i] - header['xllcenter']) / header['cellsize']
Severity: Major
Found in avaframe/in2Trans/shpConversion.py and 3 other locations - About 45 mins to fix
avaframe/in2Trans/shpConversion.py on lines 302..302
avaframe/in2Trans/shpConversion.py on lines 343..343
avaframe/in2Trans/shpConversion.py on lines 344..344

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 35.

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

    fig1, ax1 = plt.subplots(figsize=(2 * pU.figW, 2 * pU.figH))
Severity: Minor
Found in avaframe/out3Plot/outAna1Plots.py and 1 other location - About 45 mins to fix
avaframe/out3Plot/outAna1Plots.py on lines 916..916

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 35.

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 4 locations. Consider refactoring.
Open

        Ly = (Pointy[i] - header['yllcenter']) / header['cellsize']
Severity: Major
Found in avaframe/in2Trans/shpConversion.py and 3 other locations - About 45 mins to fix
avaframe/in2Trans/shpConversion.py on lines 301..301
avaframe/in2Trans/shpConversion.py on lines 302..302
avaframe/in2Trans/shpConversion.py on lines 343..343

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 35.

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

    xNew = x[ind] + cos * e1x + sin * e2x
Severity: Major
Found in avaframe/com1DFA/particleTools.py and 2 other locations - About 45 mins to fix
avaframe/com1DFA/particleTools.py on lines 607..607
avaframe/com1DFA/particleTools.py on lines 608..608

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 35.

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 float(valuesBench[countValue]) == 0.0 and float(valuesSim[countValue]) == 0.0:
Severity: Minor
Found in avaframe/log2Report/generateCompareReport.py and 1 other location - About 45 mins to fix
avaframe/log2Report/generateCompareReport.py on lines 160..160

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 35.

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

    xLim = s[max(np.max(np.nonzero(np.any(refData > 0, axis=1))[0]),
Severity: Major
Found in avaframe/out3Plot/outAIMEC.py and 2 other locations - About 45 mins to fix
avaframe/out3Plot/outAIMEC.py on lines 623..623
avaframe/out3Plot/outAIMEC.py on lines 625..625

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 35.

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