Skip to content

Commit

Permalink
🎨 Rename py_cartesian_cell_layout to py_cartesian_cell_level_layout t…
Browse files Browse the repository at this point in the history
…o not colide with type name
  • Loading branch information
simon1hofmann committed Dec 5, 2024
1 parent a0beef2 commit dead253
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ namespace pyfiction
namespace detail
{

class py_cartesian_cell_layout : public fiction::clocked_layout<
fiction::tile_based_layout<fiction::cartesian_layout<fiction::offset::ucoord_t>>>
class py_cartesian_cell_level_layout
: public fiction::clocked_layout<
fiction::tile_based_layout<fiction::cartesian_layout<fiction::offset::ucoord_t>>>
{
public:
template <typename... Args>
py_cartesian_cell_layout(std::string technology, Args... args)
py_cartesian_cell_level_layout(std::string technology, Args... args)
{
std::transform(technology.begin(), technology.end(), technology.begin(), ::tolower);

Expand Down Expand Up @@ -67,12 +68,12 @@ inline void cell_level_layout(pybind11::module& m)
* Cell-level clocked Cartesian layout.
*/
py::class_<
py_cartesian_cell_layout,
py_cartesian_cell_level_layout,
fiction::clocked_layout<fiction::tile_based_layout<fiction::cartesian_layout<fiction::offset::ucoord_t>>>>(
m, "CellLevelLayout", DOC(fiction_cell_level_layout))
.def(py::init<std::string>(), py::arg("technology"), DOC(fiction_cell_level_layout_cell_level_layout))
.def(py::init<std::string, const fiction::aspect_ratio<py_cartesian_cell_layout>&>(), py::arg("technology"),
py::arg("dimension"), DOC(fiction_cell_level_layout_cell_level_layout))
.def(py::init<std::string, const fiction::aspect_ratio<py_cartesian_cell_level_layout>&>(),
py::arg("technology"), py::arg("dimension"), DOC(fiction_cell_level_layout_cell_level_layout))
// .def(py::init(
// [](const fiction::aspect_ratio<py_cartesian_cell_layout>& dimension,
// const std::string& scheme_name,
Expand Down Expand Up @@ -113,7 +114,7 @@ inline void cell_level_layout(pybind11::module& m)
// py::arg("c"), DOC(fiction_cell_level_layout_is_po))
//
.def("cells",
[](const py_cartesian_cell_layout& lyt)
[](const py_cartesian_cell_level_layout& lyt)
{
const auto apply = [](const auto& cell_layout)
{
Expand Down

0 comments on commit dead253

Please sign in to comment.