Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed multi parameter bug #2743

Merged
merged 11 commits into from
Jul 8, 2019
Merged

Fixed multi parameter bug #2743

merged 11 commits into from
Jul 8, 2019

Conversation

samanthavbarron
Copy link
Contributor

@samanthavbarron samanthavbarron commented Jul 5, 2019

Summary

Closes #2742, and possibly closes #2741.

Details and comments

I don't have a concise tests of this to add yet, so this is just a draft for now until I can find some.

cmd_def = CmdDef()
cmd_def.add('test', 0, par_sched)

actual = cmd_def.get('test', 0, 0.01, 0.02, 0.03)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Closes #2741

self.assertEqual(actual.start_time, expected.start_time)
self.assertEqual(actual.stop_time, expected.stop_time)

self.assertEqual(cmd_def.get_parameters('test', 0), ('x', 'y', 'z'))
Copy link
Contributor Author

@samanthavbarron samanthavbarron Jul 5, 2019

Choose a reason for hiding this comment

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

Closes #2742

Copy link
Contributor

@taalexander taalexander left a comment

Choose a reason for hiding this comment

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

Thank you for jumping on this George! Looks good to me.

@taalexander taalexander merged commit ae1921a into Qiskit:master Jul 8, 2019
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
* Remove repeated parameters

* Updated changelog

* Update CHANGELOG.md

* Adding test

* Adding test of CmdDef arguments issue being fixed

* Formatting

* Formatting

* Formatting

* Formatting

* Formatting
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.

CmdDef is adding parameters multiple times CmdDef arguments fail if not provided as keyword arguments
2 participants