Mutwo-core

Latest version: v0.61.2

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 8

0.61.0

Added
- new class: `mutwo.core_parameters.abc.Duration`
- new class: `mutwo.core_parameters.DirectDuration`
- new `UnknownObjectToObjectTest` in `core_converters` module
- `EventToMetrizedEvent` in `core_converters`
- `filter_undefined` keyword to `get_parameter` method

To all event classes
- `metrize` method
- `tempo_envelope` as property of each event class
- `reset_tempo_envelope` method
- `set` method

Changed
- implicit `duration` of any numerical type to explicit `duration` of `mutwo.core_parameters.abc.Duration` type
- return type of `get_parameter(flat=True)` for `SimpleEvent` is no longer a tuple but only the parameter value itself
- argument `n_items_to_sum_up` of `core_utilites.find_numbers_which_sums_up_to` to `item_to_sum_up_count_set`
- use `class_specific_side_attribute_tuple` as a class init instead of a simple class attribute

old:
python3
class MyComplexEvent(ComplexEvent):
_class_specific_side_attribute_tuple = (("new_attribute",) +
ComplexEvent._class_specific_side_attribute_tuple)


new:
python3
class MyComplexEvent(
ComplexEvent,
class_specific_side_attribute_tuple = ("new_attribute",)
): pass


Fixed
- illegal comparison of `SingleValueParameter` (raises error now)

Removed
- `core_utilites.import_module_if_dependencies_have_been_installed` (no longer used)

0.60.0

Added
- `curve_shape_tuple` property for `mutwo.core_events.Envelope`
- `copy` method for all events (not only for complex events)

Changed
- refactor `core_parameters.TempoPoint.absolute_tempo_in_beat_per_minute` to `core_parameters.TempoPoint.absolute_tempo_in_beats_per_minute` (use plural for beats)
- use `core_events.Envelope` instead of `expenvelope.Envelope` objects in `core_converters.TempoConverter`
- use `core_events.Envelope` instead of `expenvelope.Envelope` objects in `core_generators.DynamicChoice`

Removed
- deprecated import helper functions in `mutwo.core_utilites` (artefacts from deprecated extension model)
- `expenvelope` dependency

0.59.0

Added
- `core_parameters.abc.SingleValueParameter`
- `core_parameters.abc.SingleNumberParameter`

0.58.0

Added
- various classes to standardise the conversion from mutwo parameters to concrete simple events:
- `core_converters.MutwoParameterDictToSimpleEvent`
- `core_converters.MutwoParameterDictToDuration`
- `core_converters.MutwoParameterDictToKeywordArgument`
- `core_converters.MutwoParameterDict`

Changed
- `new_duration` argument of `mutwo.core_events.SimpleEvent` to `duration`

0.57.0

Added
- `pickle_module` keyword to `compute_lazy` decorated and `PICKLE_MODULE_TO_SEARCH_TUPLE` configuration

0.56.0

Changed
- renamed `mutwo.core_events.constants` to `mutwo.core_events.configurations`

Page 1 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.