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

Fix TypeError in rs_map_generator_m caused by pmt.from_bool #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/rs_map_generator_m.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def rs_val_to_pmt(self, rs_vals):

def complex_list_to_pmt(self, items):
if len(items) == 0:
return pmt.from_bool(pmt.PMT_F)
return pmt.PMT_F
else:
pmtl = pmt.list1(pmt.from_complex(items[0]))
for i in range(len(items) - 1):
Expand All @@ -90,7 +90,7 @@ def rs_pos_to_pmt(self, rs_poss):

def int_list_to_pmt(self, items):
if len(items) == 0:
return pmt.from_bool(pmt.PMT_F)
return pmt.PMT_F
else:
pmtl = pmt.list1(pmt.from_long(items[0]))
for i in range(len(items) - 1):
Expand Down