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

possible bug in pclib/ifcs/ValRdyBundle.py #183

Open
3gx opened this issue Oct 25, 2019 · 3 comments
Open

possible bug in pclib/ifcs/ValRdyBundle.py #183

3gx opened this issue Oct 25, 2019 · 3 comments

Comments

@3gx
Copy link

3gx commented Oct 25, 2019

Hi,

Was going through PymTL Tutorial3, and noticed something funny on Fig.41 and it is the same i the code: https://github.com/cornell-brg/pymtl/blob/master/pclib/ifcs/ValRdyBundle.py#L28

1:  def to_str( self, msg=None ):
2:   msg = self.msg if None else msg
3:   return valrdy_to_str( msg, self.val, self.rdy )

Shouldn't line 2 be :

msg = self.msg if msg is None else msg

Thanks

@cbatten
Copy link
Contributor

cbatten commented Oct 25, 2019

Hmmm ... I think so? Note that pymtl2 will be deprecated this fall. We are working on pymtl3 -- a brand new and much better update!

@3gx
Copy link
Author

3gx commented Oct 25, 2019

Great. Will models written for pymtl2 be compatible with pymtl3? If not, is there a porting guide from pymtl2 -> pymtl3. Thanks

@cbatten
Copy link
Contributor

cbatten commented Oct 25, 2019

They will not be compatible out of the box but the translation should be relatively straightforward. We are looking forward to the official pymtl3 3.0 release later this fall.

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

No branches or pull requests

2 participants