From 9458338d59446353457714b1f178b8c6ab7ad11a Mon Sep 17 00:00:00 2001 From: Marcel Walter Date: Tue, 3 Dec 2024 18:27:56 +0100 Subject: [PATCH] :art: Fix duplicated `namespace py = pybind11;` --- .../include/pyfiction/algorithms/physical_design/exact.hpp | 1 - .../physical_design/graph_oriented_layout_design.hpp | 1 - .../pyfiction/algorithms/physical_design/orthogonal.hpp | 1 - .../algorithms/physical_design/post_layout_optimization.hpp | 1 - .../pyfiction/algorithms/physical_design/wiring_reduction.hpp | 1 - .../simulation/sidb/assess_physical_population_stability.hpp | 1 - .../algorithms/simulation/sidb/compute_operational_ratio.hpp | 2 -- .../pyfiction/algorithms/simulation/sidb/detect_bdl_pairs.hpp | 1 - .../pyfiction/algorithms/simulation/sidb/detect_bdl_wires.hpp | 2 -- .../simulation/sidb/determine_physically_valid_parameters.hpp | 1 - .../simulation/sidb/displacement_robustness_domain.hpp | 2 -- .../algorithms/simulation/sidb/operational_domain.hpp | 1 - .../pyfiction/algorithms/simulation/sidb/quickexact.hpp | 1 - .../simulation/sidb/random_sidb_layout_generator.hpp | 1 - .../algorithms/simulation/sidb/sidb_simulation_parameters.hpp | 1 - .../algorithms/simulation/sidb/sidb_simulation_result.hpp | 1 - .../mnt/pyfiction/include/pyfiction/inout/write_qca_layout.hpp | 1 - .../mnt/pyfiction/include/pyfiction/inout/write_svg_layout.hpp | 1 - .../pyfiction/include/pyfiction/layouts/cartesian_layout.hpp | 1 - .../pyfiction/include/pyfiction/layouts/cell_level_layout.hpp | 1 - .../mnt/pyfiction/include/pyfiction/layouts/clocked_layout.hpp | 1 - .../mnt/pyfiction/include/pyfiction/layouts/coordinates.hpp | 3 --- .../pyfiction/include/pyfiction/layouts/gate_level_layout.hpp | 1 - .../pyfiction/include/pyfiction/layouts/hexagonal_layout.hpp | 1 - .../pyfiction/include/pyfiction/layouts/obstruction_layout.hpp | 1 - .../include/pyfiction/layouts/shifted_cartesian_layout.hpp | 1 - .../pyfiction/include/pyfiction/networks/logic_networks.hpp | 1 - .../pyfiction/technology/charge_distribution_surface.hpp | 1 - .../include/pyfiction/technology/sidb_charge_state.hpp | 1 - .../pyfiction/include/pyfiction/technology/sidb_lattice.hpp | 1 - 30 files changed, 35 deletions(-) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/exact.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/exact.hpp index 28ff8f24d..0f1061566 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/exact.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/exact.hpp @@ -26,7 +26,6 @@ namespace pyfiction inline void exact(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_(m, "technology_constraints", DOC(fiction_technology_constraints)) .value("NONE", fiction::technology_constraints::NONE, DOC(fiction_technology_constraints_NONE)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/graph_oriented_layout_design.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/graph_oriented_layout_design.hpp index ceca6f703..3a7e4a50d 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/graph_oriented_layout_design.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/graph_oriented_layout_design.hpp @@ -25,7 +25,6 @@ namespace pyfiction inline void graph_oriented_layout_design(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_( m, "gold_effort_mode", DOC(fiction_graph_oriented_layout_design_params_effort_mode)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/orthogonal.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/orthogonal.hpp index 4fac19f3c..da80a40a4 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/orthogonal.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/orthogonal.hpp @@ -24,7 +24,6 @@ namespace pyfiction inline void orthogonal(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "orthogonal_params", DOC(fiction_orthogonal_physical_design_params)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/post_layout_optimization.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/post_layout_optimization.hpp index fb892f852..fe52c30c0 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/post_layout_optimization.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/post_layout_optimization.hpp @@ -21,7 +21,6 @@ namespace pyfiction inline void post_layout_optimization(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "post_layout_optimization_params", DOC(fiction_post_layout_optimization_params)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/wiring_reduction.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/wiring_reduction.hpp index 3496a9184..fb2ab374e 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/wiring_reduction.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/physical_design/wiring_reduction.hpp @@ -21,7 +21,6 @@ namespace pyfiction inline void wiring_reduction(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "wiring_reduction_params", DOC(fiction_wiring_reduction_params)) .def(py::init<>()) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/assess_physical_population_stability.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/assess_physical_population_stability.hpp index 811a80010..3fd4e5376 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/assess_physical_population_stability.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/assess_physical_population_stability.hpp @@ -23,7 +23,6 @@ template void assess_physical_population_stability(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; m.def("assess_physical_population_stability", &fiction::assess_physical_population_stability, py::arg("lyt"), py::arg("params") = fiction::assess_physical_population_stability_params{}, diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/compute_operational_ratio.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/compute_operational_ratio.hpp index 7c32019e5..f5346149a 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/compute_operational_ratio.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/compute_operational_ratio.hpp @@ -24,7 +24,6 @@ template void compute_operational_ratio(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; m.def("compute_operational_ratio", &fiction::compute_operational_ratio, py::arg("lyt"), py::arg("spec"), py::arg("pp"), py::arg("params") = fiction::operational_domain_params{}, @@ -36,7 +35,6 @@ void compute_operational_ratio(pybind11::module& m) inline void compute_operational_ratio(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "compute_operational_ratio_params", DOC(fiction_compute_operational_ratio_params)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_pairs.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_pairs.hpp index 960cb0cda..a3ac4f350 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_pairs.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_pairs.hpp @@ -38,7 +38,6 @@ void detect_bdl_pairs(pybind11::module& m) inline void detect_bdl_pairs(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_>(m, "bdl_pair", DOC(fiction_bdl_pair)) .def(py::init<>(), DOC(fiction_bdl_pair_bdl_pair)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_wires.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_wires.hpp index 89848091f..9ae561533 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_wires.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/detect_bdl_wires.hpp @@ -24,7 +24,6 @@ template void detect_bdl_wires(pybind11::module& m, const std::string& lattice) { namespace py = pybind11; - namespace py = pybind11; using bdl_wire_t = fiction::bdl_wire; @@ -52,7 +51,6 @@ void detect_bdl_wires(pybind11::module& m, const std::string& lattice) inline void detect_bdl_wires(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; // Enum for wire selection options py::enum_(m, "bdl_wire_selection", DOC(fiction_bdl_wire_selection)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/determine_physically_valid_parameters.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/determine_physically_valid_parameters.hpp index e06ac9a00..d2cace689 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/determine_physically_valid_parameters.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/determine_physically_valid_parameters.hpp @@ -34,7 +34,6 @@ void determine_physically_valid_parameters(pybind11::module& m) inline void determine_physically_valid_parameters(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_>(m, "physically_valid_parameters_domain", DOC(fiction_operational_domain)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/displacement_robustness_domain.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/displacement_robustness_domain.hpp index 5f220ca78..ed491e746 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/displacement_robustness_domain.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/displacement_robustness_domain.hpp @@ -25,7 +25,6 @@ void determine_displacement_robustness_domain(pybind11::module& m, const std::st { namespace py = pybind11; - namespace py = pybind11; py::class_>( m, fmt::format("displacement_robustness_domain{}", lattice).c_str()) @@ -42,7 +41,6 @@ void determine_displacement_robustness_domain(pybind11::module& m, const std::st inline void determine_displacement_robustness_domain(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_::dimer_displacement_policy>( m, "dimer_displacement_policy") diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/operational_domain.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/operational_domain.hpp index bcb416d19..90176770a 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/operational_domain.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/operational_domain.hpp @@ -50,7 +50,6 @@ void operational_domain(pybind11::module& m) inline void operational_domain(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "parameter_point", DOC(fiction_parameter_point)) .def(py::init<>(), DOC(fiction_parameter_point_parameter_point)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/quickexact.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/quickexact.hpp index 25833c05c..f1a1b16cb 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/quickexact.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/quickexact.hpp @@ -35,7 +35,6 @@ inline void quickexact(pybind11::module& m) { // NOTE be careful with the order of the following calls! Python will resolve the first matching overload! namespace py = pybind11; - namespace py = pybind11; py::enum_::automatic_base_number_detection>( m, "automatic_base_number_detection", DOC(fiction_quickexact_params_automatic_base_number_detection)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/random_sidb_layout_generator.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/random_sidb_layout_generator.hpp index 1a330627a..154f58f7a 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/random_sidb_layout_generator.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/random_sidb_layout_generator.hpp @@ -41,7 +41,6 @@ void random_layout_generator(pybind11::module& m) inline void random_sidb_layout_generator(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_::positive_charges>( m, "positive_charges", DOC(fiction_generate_random_sidb_layout_params_positive_charges)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_parameters.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_parameters.hpp index 815b579e1..3e309b4d4 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_parameters.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_parameters.hpp @@ -22,7 +22,6 @@ namespace pyfiction inline void sidb_simulation_parameters(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "sidb_simulation_parameters", DOC(fiction_sidb_simulation_parameters)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_result.hpp b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_result.hpp index b5ed86ec3..bc6244afb 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_result.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_result.hpp @@ -26,7 +26,6 @@ template void sidb_simulation_result(pybind11::module& m, const std::string& lattice = "") { namespace py = pybind11; - namespace py = pybind11; py::class_>(m, fmt::format("sidb_simulation_result{}", lattice).c_str(), DOC(fiction_sidb_simulation_result)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/inout/write_qca_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/inout/write_qca_layout.hpp index 296a7c84c..38403ea97 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/inout/write_qca_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/inout/write_qca_layout.hpp @@ -20,7 +20,6 @@ namespace pyfiction inline void write_qca_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "write_qca_layout_params", DOC(fiction_write_qca_layout_params)) .def(py::init<>()) diff --git a/bindings/mnt/pyfiction/include/pyfiction/inout/write_svg_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/inout/write_svg_layout.hpp index 6ba7888cc..9ee910865 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/inout/write_svg_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/inout/write_svg_layout.hpp @@ -64,7 +64,6 @@ inline void write_qca_layout_svg_impl(pybind11::module& m) void write_svg_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_(m, "color_mode", DOC(fiction_write_sidb_layout_svg_params_color_mode)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/cartesian_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/cartesian_layout.hpp index 0e9b9c1a4..61cd0573a 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/cartesian_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/cartesian_layout.hpp @@ -23,7 +23,6 @@ namespace pyfiction inline void cartesian_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; /** * Cartesian layout. diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/cell_level_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/cell_level_layout.hpp index 7a3312459..39d136a82 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/cell_level_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/cell_level_layout.hpp @@ -32,7 +32,6 @@ template void fcn_technology_cell_level_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; // fetch technology name auto tech_name = std::string{fiction::tech_impl_name}; diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/clocked_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/clocked_layout.hpp index 2486cf9cf..f1ef83dae 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/clocked_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/clocked_layout.hpp @@ -28,7 +28,6 @@ template void clocked_layout(pybind11::module& m, const std::string& topology) { namespace py = pybind11; - namespace py = pybind11; /** * Clocked Cartesian layout. diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/coordinates.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/coordinates.hpp index fe49ee028..b5c0ed70f 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/coordinates.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/coordinates.hpp @@ -32,7 +32,6 @@ namespace pyfiction inline void offset_coordinate(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "offset_coordinate", DOC(fiction_offset_ucoord_t)) .def(py::init<>(), DOC(fiction_offset_ucoord_t_ucoord_t)) @@ -93,7 +92,6 @@ inline void offset_coordinate(pybind11::module& m) inline void cube_coordinate(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "cube_coordinate", DOC(fiction_cube_coord_t)) .def(py::init<>(), DOC(fiction_cube_coord_t_coord_t)) @@ -150,7 +148,6 @@ inline void cube_coordinate(pybind11::module& m) inline void siqad_coordinate(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, "siqad_coordinate", DOC(fiction_siqad_coord_t)) .def(py::init<>(), DOC(fiction_siqad_coord_t_coord_t)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/gate_level_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/gate_level_layout.hpp index 2ee16d208..dda497234 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/gate_level_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/gate_level_layout.hpp @@ -29,7 +29,6 @@ template void gate_level_layout(pybind11::module& m, const std::string& topology) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, fmt::format("{}_gate_layout", topology).c_str(), DOC(fiction_gate_level_layout)) .def(py::init<>()) diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/hexagonal_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/hexagonal_layout.hpp index 2ca20d37b..d36e872f4 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/hexagonal_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/hexagonal_layout.hpp @@ -22,7 +22,6 @@ namespace pyfiction inline void hexagonal_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; /** * Hexagonal layout. diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/obstruction_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/obstruction_layout.hpp index b846f1be6..694fc0069 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/obstruction_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/obstruction_layout.hpp @@ -22,7 +22,6 @@ template void obstruction_layout(pybind11::module& m, const std::string& topology) { namespace py = pybind11; - namespace py = pybind11; py::class_(m, fmt::format("{}_obstruction_layout", topology).c_str(), DOC(fiction_obstruction_layout)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/layouts/shifted_cartesian_layout.hpp b/bindings/mnt/pyfiction/include/pyfiction/layouts/shifted_cartesian_layout.hpp index e8a19f237..f7d81beff 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/layouts/shifted_cartesian_layout.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/layouts/shifted_cartesian_layout.hpp @@ -23,7 +23,6 @@ namespace pyfiction inline void shifted_cartesian_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; /** * Shifted Cartesian layout. diff --git a/bindings/mnt/pyfiction/include/pyfiction/networks/logic_networks.hpp b/bindings/mnt/pyfiction/include/pyfiction/networks/logic_networks.hpp index 65a100012..fb10fe4c0 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/networks/logic_networks.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/networks/logic_networks.hpp @@ -34,7 +34,6 @@ template void network(pybind11::module& m, const std::string& network_name) { namespace py = pybind11; - namespace py = pybind11; /** * Network node. diff --git a/bindings/mnt/pyfiction/include/pyfiction/technology/charge_distribution_surface.hpp b/bindings/mnt/pyfiction/include/pyfiction/technology/charge_distribution_surface.hpp index 088efdbfd..4ccf9c8c5 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/technology/charge_distribution_surface.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/technology/charge_distribution_surface.hpp @@ -32,7 +32,6 @@ template void charge_distribution_surface_layout(pybind11::module& m, const std::string& lattice = "") { namespace py = pybind11; - namespace py = pybind11; using py_cds = py_charge_distribution_surface_layout; diff --git a/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_charge_state.hpp b/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_charge_state.hpp index a5e7c0886..5ae5e328d 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_charge_state.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_charge_state.hpp @@ -17,7 +17,6 @@ namespace pyfiction inline void sidb_charge_state(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; py::enum_(m, "sidb_charge_state", DOC(fiction_sidb_charge_state)) .value("NEGATIVE", fiction::sidb_charge_state::NEGATIVE, DOC(fiction_sidb_charge_state_NEGATIVE)) diff --git a/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_lattice.hpp b/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_lattice.hpp index 4fc8c310d..6f96e1efe 100644 --- a/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_lattice.hpp +++ b/bindings/mnt/pyfiction/include/pyfiction/technology/sidb_lattice.hpp @@ -32,7 +32,6 @@ template void sidb_lattice_cell_level_layout(pybind11::module& m) { namespace py = pybind11; - namespace py = pybind11; // fetch technology name auto orientation = std::string{fiction::sidb_lattice_name};