Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

last_config_step : type_error <= not supported 'int' and 'str' #30

Open
awweide opened this issue Jun 21, 2019 · 3 comments
Open

last_config_step : type_error <= not supported 'int' and 'str' #30

awweide opened this issue Jun 21, 2019 · 3 comments

Comments

@awweide
Copy link

awweide commented Jun 21, 2019

Trying to run the code with an example config and the described command line options, I get the following error when doing eval:

last_config_step = sorted([s for s in config_steps if s <= step])[-1]
TypeError: '<=' not supported between instances of 'int' and 'str'

Adding in an explicit casting int(step) fixed the problem. I assume this is a problem with my versions/libraries and not the code, but I can't make any sense of it.

@Marvin182
Copy link
Contributor

Thanks for reporting. This is a known issue and will be fixed in a future release.
I will leave this open for other users.

@jeffling
Copy link

Also just got this. Thanks for making the issue.

@zengsn
Copy link

zengsn commented Feb 7, 2020

last_config_step = sorted([s for s in config_steps if s <= int(step)])[-1]

zengsn added a commit to zengsn/compare_gan that referenced this issue Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants