Skip to content

Renaming of classes and functions #320

Description

@lczech

Hey Sergey,

is it possible to rename classes and functions on the Python side? This could generally be a very useful token to have in the config file, for instance in the form of:

rename Old_name_as_it_would_be_created_by_binder NewNiceName

or the like. In particular, I am having some weirdly named class template instances:

namespace genesis {
namespace utils {
namespace math {

template class CompensatedSum<KahanSummation>;

} // namespace math
} // namespace utils
} // namespace genesis

(The class uses tag dispatch on the Summation class to select which algorithm to use for the compensated sum.)
However, this gives me a Python class that includes the namespace for the template type:

CompensatedSum_genesis_utils_math_KahanSummation_t

(and a kind of weird _t at the end as well), and I'd like to give this a nicer name such as KahanSum.

Thanks and so long
Lucas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions