Skip to content

Commit

Permalink
Update release notes and doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Mar 25, 2019
1 parent 47e45c6 commit c598466
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Pulse Templates:
- `MappingPulseTemplate`:
- Raise a ValueError if more than one inner channel is mapped to the same outer channel
- `allow_partial_parameter_mapping` is now True as a default. The default can be changed with the class variable `MappingPulseTemplate.ALLOW_PARTIAL_PARAMETER_MAPPING`.

## 0.3 ##

Expand Down
3 changes: 2 additions & 1 deletion qupulse/pulses/mapping_pulse_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class MappingPulseTemplate(PulseTemplate, ParameterConstrainer):
constraining parameters by deriving from ParameterConstrainer"""

ALLOW_PARTIAL_PARAMETER_MAPPING = True
"""Default value for allow_partial_parameter_mapping of the __init__ method."""

def __init__(self, template: PulseTemplate, *,
identifier: Optional[str]=None,
Expand All @@ -52,7 +53,7 @@ def __init__(self, template: PulseTemplate, *,
:param measurement_mapping: mappings for other measurement names are inserted
:param channel_mapping: mappings for other channels are auto inserted
:param parameter_constraints:
:param allow_partial_parameter_mapping:
:param allow_partial_parameter_mapping: If None the value of the class variable ALLOW_PARTIAL_PARAMETER_MAPPING
"""
PulseTemplate.__init__(self, identifier=identifier)
ParameterConstrainer.__init__(self, parameter_constraints=parameter_constraints)
Expand Down

0 comments on commit c598466

Please sign in to comment.