jason-neal/eniric

View on GitHub

Showing 39 of 105 total issues

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

        if (jj == 1) or (jj == 3):
            ax[jj].set_yticklabels([])
Severity: Major
Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 222..223
scripts/precision_four_panel.py on lines 224..225
scripts/precision_four_panel.py on lines 488..489

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

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

        ax[ii].scatter(
            df_ii_80k.index,
            df_ii_80k["Cond. 3"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        if (jj == 1) or (jj == 3):
            ax[jj].set_yticklabels([])
Severity: Major
Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 224..225
scripts/precision_four_panel.py on lines 486..487
scripts/precision_four_panel.py on lines 488..489

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

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

        ax[ii].scatter(
            df_ii_80k.index,
            df_ii_80k["Cond. 3"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].scatter(
            df_ii_100k.index,
            df_ii_100k["Cond. 3"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].scatter(
            df_ii_80k.index,
            df_ii_80k["Cond. 2"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        if (jj == 0) or (jj == 1):
            ax[jj].set_xticklabels([])
Severity: Major
Found in scripts/precision_four_panel.py and 3 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 222..223
scripts/precision_four_panel.py on lines 486..487
scripts/precision_four_panel.py on lines 488..489

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

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

        ax[ii].scatter(
            df_ii_60k.index,
            df_ii_60k["Cond. 2"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].scatter(
            df_ii_60k.index,
            df_ii_60k["Cond. 3"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].scatter(
            df_ii_60k.index,
            df_ii_60k["Cond. 2"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 435..437
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].scatter(
            df_ii_80k.index,
            df_ii_80k["Cond. 2"].values,
Severity: Major
Found in scripts/precision_four_panel.py and 11 other locations - About 50 mins to fix
scripts/precision_four_panel.py on lines 163..165
scripts/precision_four_panel.py on lines 170..172
scripts/precision_four_panel.py on lines 178..180
scripts/precision_four_panel.py on lines 185..187
scripts/precision_four_panel.py on lines 193..195
scripts/precision_four_panel.py on lines 200..202
scripts/precision_four_panel.py on lines 413..415
scripts/precision_four_panel.py on lines 420..422
scripts/precision_four_panel.py on lines 428..430
scripts/precision_four_panel.py on lines 443..445
scripts/precision_four_panel.py on lines 450..452

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

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

        ax[ii].plot(
            df_ii_60k.index, df_ii_60k["Cond. 1"].values, color="b", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 153..154
scripts/precision_four_panel.py on lines 156..157
scripts/precision_four_panel.py on lines 159..160
scripts/precision_four_panel.py on lines 406..407
scripts/precision_four_panel.py on lines 409..410

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

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

        ax[jj].text(0, ymax, "{} K".format(teffs[jj]), size=14)
Severity: Minor
Found in scripts/precision_four_panel.py and 1 other location - About 35 mins to fix
scripts/precision_four_panel.py on lines 473..473

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

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

        ax[ii].plot(
            df_ii_100k.index, df_ii_100k["Cond. 1"].values, color="r", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 153..154
scripts/precision_four_panel.py on lines 156..157
scripts/precision_four_panel.py on lines 403..404
scripts/precision_four_panel.py on lines 406..407
scripts/precision_four_panel.py on lines 409..410

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

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

        ax[ii].plot(
            df_ii_60k.index, df_ii_60k["Cond. 1"].values, color="b", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 156..157
scripts/precision_four_panel.py on lines 159..160
scripts/precision_four_panel.py on lines 403..404
scripts/precision_four_panel.py on lines 406..407
scripts/precision_four_panel.py on lines 409..410

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

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

        ax[ii].plot(
            df_ii_100k.index, df_ii_100k["Cond. 1"].values, color="r", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 153..154
scripts/precision_four_panel.py on lines 156..157
scripts/precision_four_panel.py on lines 159..160
scripts/precision_four_panel.py on lines 403..404
scripts/precision_four_panel.py on lines 406..407

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

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

        ax[ii].plot(
            df_ii_80k.index, df_ii_80k["Cond. 1"].values, color="g", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 153..154
scripts/precision_four_panel.py on lines 159..160
scripts/precision_four_panel.py on lines 403..404
scripts/precision_four_panel.py on lines 406..407
scripts/precision_four_panel.py on lines 409..410

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

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

        ax[ii].plot(
            df_ii_80k.index, df_ii_80k["Cond. 1"].values, color="g", linestyle="--"
Severity: Major
Found in scripts/precision_four_panel.py and 5 other locations - About 35 mins to fix
scripts/precision_four_panel.py on lines 153..154
scripts/precision_four_panel.py on lines 156..157
scripts/precision_four_panel.py on lines 159..160
scripts/precision_four_panel.py on lines 403..404
scripts/precision_four_panel.py on lines 409..410

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

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

        ax[jj].text(0, ymax, "{} K".format(teffs[jj]), size=14)
Severity: Minor
Found in scripts/precision_four_panel.py and 1 other location - About 35 mins to fix
scripts/precision_four_panel.py on lines 214..214

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

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