benvial/gyptis

View on GitHub

Showing 211 of 211 total issues

Function download_data has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

def download_data(
Severity: Minor
Found in src/gyptis/utils/data_download.py - About 35 mins to fix

    Function plot_rods has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    def plot_rods(ax, rod_positions, rod_radii, *args, **kwargs):
    Severity: Minor
    Found in dev/gen_bg.py - About 35 mins to fix

      Function diffraction_efficiencies has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def diffraction_efficiencies(
      Severity: Minor
      Found in src/gyptis/models/metaclasses.py - About 35 mins to fix

        Function diffraction_efficiencies has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def diffraction_efficiencies(
        Severity: Minor
        Found in src/gyptis/models/grating2d.py - About 35 mins to fix

          Function calculate_analytical_cross_sections has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def calculate_analytical_cross_sections(eps_cyl, eps_bg, wavelength, radius, N=50):
          Severity: Minor
          Found in examples/scattering/effs_scatt_cylinder.py - About 35 mins to fix

            Function __new__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def __new__(cls, markers, subdomains, mapping, cpp=True, **kwargs):
            Severity: Minor
            Found in src/gyptis/materials.py - About 35 mins to fix

              Function plot_boundaries has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              def plot_boundaries(markers, domain=None, shift=(0, 0), ax=None, **kwargs):
              Severity: Minor
              Found in src/gyptis/plot.py - About 35 mins to fix

                Function is_on_plane has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                def is_on_plane(P, A, B, C, eps=dolfin.DOLFIN_EPS):
                Severity: Minor
                Found in src/gyptis/geometry/geometry.py - About 35 mins to fix

                  Function read_mesh has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  def read_mesh(mesh_file, data_dir=None, data_dir_xdmf=None, dim=3, subdomains=None):
                  Severity: Minor
                  Found in src/gyptis/mesh/mesh.py - About 35 mins to fix

                    Function transfer_sub_mesh has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    def transfer_sub_mesh(x, geometry, source_space, target_space, subdomain):
                    Severity: Minor
                    Found in src/gyptis/optimize.py - About 35 mins to fix

                      Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(
                      Severity: Minor
                      Found in src/gyptis/models/hc2d.py - About 35 mins to fix

                        Function maxwell has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def maxwell(self, u, v, xi, chi, domain="everywhere"):
                        Severity: Minor
                        Found in src/gyptis/formulations/maxwell2d.py - About 35 mins to fix

                          Function __init__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def __init__(
                          Severity: Minor
                          Found in src/gyptis/geometry/scattering2d.py - About 35 mins to fix

                            Function fuse has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def fuse(self, id1, id2, dim1=None, dim2=None, sync=True):
                            Severity: Minor
                            Found in src/gyptis/geometry/geometry.py - About 35 mins to fix

                              Function __new__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def __new__(cls, markers, subdomains, mapping, cpp=True, **kwargs):
                              Severity: Minor
                              Found in src/gyptis/materials.py - About 35 mins to fix

                                Function plot_arrow has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                def plot_arrow(a, x, y, dx, dy):
                                Severity: Minor
                                Found in examples/sources/plot_sources.py - About 35 mins to fix

                                  Function __new__ has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def __new__(cls, markers, subdomains, mapping, cpp=True, **kwargs):
                                  Severity: Minor
                                  Found in src/gyptis/materials.py - About 35 mins to fix

                                    Function diffraction_efficiencies has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def diffraction_efficiencies(
                                    Severity: Minor
                                    Found in src/gyptis/models/grating3d.py - About 35 mins to fix

                                      Function download_example_data has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      def download_example_data(
                                      Severity: Minor
                                      Found in src/gyptis/utils/data_download.py - About 35 mins to fix

                                        Function _adaptive_sampler has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        def _adaptive_sampler(f, z0, max_bend=10, max_z_rel=1e-3, max_df=0.05):
                                        Severity: Minor
                                        Found in src/gyptis/utils/sample.py - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language