Skip to content

Alter interface for registration robst linear estimator#2700

Merged
Lestropie merged 3 commits intodevfrom
registration_linear_estimator
Feb 28, 2024
Merged

Alter interface for registration robst linear estimator#2700
Lestropie merged 3 commits intodevfrom
registration_linear_estimator

Conversation

@Lestropie
Copy link
Member

This is the commencement of addressing #2586.

The lone commit is a manual replication of the effects of 9f3d624, which is erroneously in the history of #2678; I'm happy for that commit to stay there, but I'd rather resolve this issue explicitly in its own PR before merging #2678.

Prompted to get the issue resolved due to potential relevance in #2696.


I most definitely don't currently have sufficient understanding of the relevant code to understand exactly what's going on. I'm crossing my fingers that @maxpietsch might be able to provide some insight. All I recall is that in the process of doing #2678, I saw some stuff in population_template that struck me as odd (seemingly one option wasn't present in the list of choices, and reported default differed from mrregister's reported default), and that prompted me to post #2586. If need be, I may need to wrap my head around this. That may include 9f3d624, which from memory was a partial merge of a feature branch into dev?

@Lestropie Lestropie requested a review from maxpietsch August 30, 2023 05:50
@Lestropie Lestropie self-assigned this Aug 30, 2023
@Lestropie Lestropie mentioned this pull request Jan 28, 2024
@Lestropie Lestropie added this to the 3.1.0 updates milestone Feb 21, 2024
@Lestropie Lestropie marked this pull request as ready for review February 21, 2024 01:36
@Lestropie Lestropie requested a review from a team February 21, 2024 01:37
Lestropie added a commit that referenced this pull request Feb 21, 2024
Resolves changes proposed in e073be5 (#2700) against introduction of clang-format (#2652).
Resolves changes proposed in e073be5 (#2700) against introduction of clang-format (#2652).
@Lestropie Lestropie force-pushed the registration_linear_estimator branch from 259b6d7 to 93de5a2 Compare February 21, 2024 01:43
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions


const char *linear_metric_choices[] = {"diff", "ncc", nullptr};
const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", nullptr};
const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", "none", nullptr};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: do not declare C-style arrays, use std::array<> instead [cppcoreguidelines-avoid-c-arrays]

const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", "none", nullptr};
      ^


const char *linear_metric_choices[] = {"diff", "ncc", nullptr};
const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", nullptr};
const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", "none", nullptr};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: variable 'linear_robust_estimator_choices' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables]

const char *linear_robust_estimator_choices[] = {"l1", "l2", "lp", "none", nullptr};
            ^

@Lestropie Lestropie merged commit 4df4015 into dev Feb 28, 2024
@Lestropie Lestropie deleted the registration_linear_estimator branch February 28, 2024 11:17
@Lestropie Lestropie restored the registration_linear_estimator branch August 26, 2025 07:51
@Lestropie Lestropie deleted the registration_linear_estimator branch August 27, 2025 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant