Skip to content

Commit

Permalink
💚 Added fiction namespace to function to fix the Windows CI (#561)
Browse files Browse the repository at this point in the history
* 💚 add ``fiction`` namespace to fix windows issue.

* 💚 add ``fiction`` namespace to fix windows issue.

* 🎨 Incorporated pre-commit fixes

* 💚 add ``fiction`` namespace to fix windows issue.

* 🎨 Incorporated pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Drewniok and pre-commit-ci[bot] authored Nov 1, 2024
1 parent 076ab74 commit c9d9656
Showing 1 changed file with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ class displacement_robustness_domain_impl
{
if constexpr (has_siqad_coord_v<Lyt>)
{
auto new_pos_se = siqad::to_fiction_coord<cube::coord_t>(c);
auto new_pos_nw = siqad::to_fiction_coord<cube::coord_t>(c);
auto new_pos_se = fiction::siqad::to_fiction_coord<fiction::cube::coord_t>(c);
auto new_pos_nw = fiction::siqad::to_fiction_coord<fiction::cube::coord_t>(c);
// the cell c is not a fixed cell, i.e., displacement is considered.

if (params.fixed_sidbs.find(c) == params.fixed_sidbs.cend())
Expand All @@ -387,8 +387,12 @@ class displacement_robustness_domain_impl
cell<Lyt>>::dimer_displacement_policy::STAY_ON_ORIGINAL_DIMER &&
params.displacement_variations.second > 0)
{
new_pos_nw.y = siqad::to_fiction_coord<cube::coord_t>(siqad::coord_t{c.x, c.y, 0}).y;
new_pos_se.y = siqad::to_fiction_coord<cube::coord_t>(siqad::coord_t{c.x, c.y, 1}).y;
new_pos_nw.y = fiction::siqad::to_fiction_coord<fiction::cube::coord_t>(
fiction::siqad::coord_t{c.x, c.y, 0})
.y;
new_pos_se.y = fiction::siqad::to_fiction_coord<fiction::cube::coord_t>(
fiction::siqad::coord_t{c.x, c.y, 1})
.y;
}
else
{
Expand All @@ -398,7 +402,7 @@ class displacement_robustness_domain_impl
}

const auto all_coord = all_coordinates_in_spanned_area<cell<Lyt>>(
siqad::to_siqad_coord(new_pos_nw), siqad::to_siqad_coord(new_pos_se));
fiction::siqad::to_siqad_coord(new_pos_nw), fiction::siqad::to_siqad_coord(new_pos_se));
all_possible_sidb_misplacements.push_back(all_coord);
}

Expand Down Expand Up @@ -439,14 +443,14 @@ class displacement_robustness_domain_impl
cell<Lyt>>::dimer_displacement_policy::STAY_ON_ORIGINAL_DIMER &&
params.displacement_variations.second > 0)
{
auto new_pos_se_siqad = siqad::to_siqad_coord(c);
auto new_pos_nw_siqad = siqad::to_siqad_coord(c);
auto new_pos_se_siqad = fiction::siqad::to_siqad_coord(c);
auto new_pos_nw_siqad = fiction::siqad::to_siqad_coord(c);

new_pos_se_siqad.z = 0;
new_pos_nw_siqad.z = 1;

new_pos_nw = siqad::to_fiction_coord<cell<Lyt>>(new_pos_nw_siqad);
new_pos_se = siqad::to_fiction_coord<cell<Lyt>>(new_pos_se_siqad);
new_pos_nw = fiction::siqad::to_fiction_coord<cell<Lyt>>(new_pos_nw_siqad);
new_pos_se = fiction::siqad::to_fiction_coord<cell<Lyt>>(new_pos_se_siqad);
}

else
Expand Down

0 comments on commit c9d9656

Please sign in to comment.