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

edited i_omt.py and ls_tb.py #22

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

elainehu222
Copy link
Collaborator

@elainehu222 elainehu222 commented Jul 7, 2024

edit in i_omt:
Edited the get_offset() function in i_omt to get rid of the attribute error 'NoneType has no attribute as_long()'
The original function did not account for the fact that the algorithm solved the schedule in groups, and that self.results had multiple elements corresponding to each of these groups.
I changed the function so that it searched for the offset in self.results based on the group that the stream and link were in.

This is the edited get_offset() function:
image

edit in ls_tb:
changed line 221 in ls_tb that caused the "cannot convert float infinity to integer" error. changed the code to
_val[0] = np.inf

Edited the get_offset() function to get rid of the attribute error
@elainehu222 elainehu222 changed the title Update i_omt.py updated i_omt.py and ls_tb.py Jul 7, 2024
@elainehu222 elainehu222 changed the title updated i_omt.py and ls_tb.py edited i_omt.py and ls_tb.py Jul 7, 2024
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.

cannot convert float to integer error in ls_tb error when running i_omt
1 participant