Skip to content

Conversation

@LeonidElkin
Copy link
Collaborator

  • ParametrizationSpec completely deleted. Now everything works via ParametricFamily
  • Improved work with decorators. Add a few more features like <fam_obj_name>.parametrization(...)
  • Now if you want your parametrization, you must inherit Parametrization class
  • Tests have been structured to directories and refactored to class-specific view
  • Mypy now checks tests with weaker ruleset, but still need lots of #type ...
  • Test directory now also a python module to simplify work with imports

@LeonidElkin LeonidElkin requested a review from Desiment October 11, 2025 20:45
return parameters.transform_to_base_parametrization()

# Backward-compatibility helper (former ParametrizationSpec API)
def get_base_parameters(self, parameters: Parametrization) -> Parametrization:
Copy link
Contributor

Choose a reason for hiding this comment

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

I do not think that we need this method. We do not care about backward compatibility since we in pre-alpha stage of development

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure

"""
return self.to_base(parameters)

def build_analytical_computations(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be public method?

Copy link
Collaborator Author

@LeonidElkin LeonidElkin Oct 13, 2025

Choose a reason for hiding this comment

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

Strictly (two prefix underscores)? Definitely not. As a recommendation (single prefix underscores)? Quite yes, because Distribution uses it, but at the same time I would not like to show it to users.

# This is the 1st commit message:

refactor: delete ParametrizationSpec

# The commit message #2 will be skipped:

# fixup! refactor: delete ParametrizationSpec
@LeonidElkin LeonidElkin force-pushed the refactor/families-and-tests branch from 626b2c6 to 67f02ee Compare October 13, 2025 16:23
@LeonidElkin LeonidElkin requested a review from Desiment October 26, 2025 15:12
@LeonidElkin LeonidElkin force-pushed the refactor/families-and-tests branch from 67f02ee to 764993b Compare October 26, 2025 15:14
@LeonidElkin LeonidElkin force-pushed the refactor/families-and-tests branch from 764993b to bc851e1 Compare October 26, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants