Skip to content

Commit

Permalink
Remove aliases from other branch
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed May 8, 2020
1 parent 4c1e76a commit 1e2705e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions filter_functions/pulse_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,9 @@ def is_cached(self, attr: str) -> bool:
'total phases': '_total_phases',
'filter function': '_F',
'fidelity filter function': '_F',
'generalized filter function': '_F_kl',
'pulse correlation filter function': '_F_pc',
'fidelity pulse correlation filter function': '_F_pc',
'generalized pulse correlation filter function': '_F_pc_kl',
'control matrix': '_R',
'pulse correlation control matrix': '_R_pc'}
'control matrix': '_R'}

alias = attr.lower().replace('_', ' ')
if alias in aliases:
Expand Down
5 changes: 1 addition & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,9 @@ def test_pulse_sequence_attributes(self):
'total phases': '_total_phases',
'filter function': '_F',
'fidelity filter function': '_F',
'generalized filter function': '_F_kl',
'pulse correlation filter function': '_F_pc',
'fidelity pulse correlation filter function': '_F_pc',
'generalized pulse correlation filter function': '_F_pc_kl',
'control matrix': '_R',
'pulse correlation control matrix': '_R'}
'control matrix': '_R'}

for alias, attr in aliases.items():
# set mock attribute at random
Expand Down

0 comments on commit 1e2705e

Please sign in to comment.