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

python 3 format causing pylint fails #1488

Closed
jedwards4b opened this issue May 8, 2017 · 9 comments
Closed

python 3 format causing pylint fails #1488

jedwards4b opened this issue May 8, 2017 · 9 comments

Comments

@jedwards4b
Copy link
Contributor

In PR #1471 I objected to the usage of python3 syntax format statements instead of %s as used throughout the code. Now I've noticed that this usage was introduced to the trunk in PR #1388

Master is failing pylint tests due to #1388 - while fixing the pylint test can you please revert to %s usage throughout?

@erichlf
Copy link

erichlf commented May 8, 2017

I can do that.

@erichlf
Copy link

erichlf commented May 8, 2017

So the question is why wasn't pylint failing with the other python3 string formats that already existed in the code?

@jedwards4b
Copy link
Contributor Author

I don't know, it's also not failing on cheyenne - different pylint version maybe?

@erichlf
Copy link

erichlf commented May 8, 2017

@jgfouca has a fix for this.

@jgfouca
Copy link
Contributor

jgfouca commented May 8, 2017

@jedwards4b I added an additional warning ignore to code_checker, so we can use python3 string formatting. Based on my discussions with Erich, I believe the python3 format is superior, so it should be a win for us to use it in the longrun.

@jedwards4b
Copy link
Contributor Author

I am not disagreeing that format is a superior usage. I am arguing for consistent usage throughout the code. I would like to use %s for now and if another PR comes up changing all %s to format then we can consider switching.

@rljacob
Copy link
Member

rljacob commented May 8, 2017

Its reasonable to change the format file-by-file as you go along rather then every file all at once.

@rljacob
Copy link
Member

rljacob commented May 8, 2017

....but don't want to start that at this time while trying to harden for CESM2 release.

@jgfouca jgfouca added the ready label May 10, 2017
@rljacob rljacob changed the title python 3 format usage python 3 format causing pylint fails May 23, 2017
@ghost ghost assigned rljacob May 23, 2017
@ghost ghost added in progress and removed ready labels May 23, 2017
@rljacob
Copy link
Member

rljacob commented May 23, 2017

Fixed by #1490

@rljacob rljacob closed this as completed May 23, 2017
@ghost ghost removed the in progress label May 23, 2017
jgfouca pushed a commit that referenced this issue Jun 2, 2017
Update edison pe-layouts for A_WCYCL compsets

This PR updates the edison M and L pe-layouts for A_WCYCL compsets and
ne30_oEC60to30 grids, to match the improved layouts described in Issue #1387.
It also adds a S pe-layout for the same configuration that gets just over
2 sypd on 39 nodes.

Tested with:

-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount S
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount M
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount L
[BFB]
jgfouca pushed a commit that referenced this issue Feb 23, 2018
Update edison pe-layouts for A_WCYCL compsets

This PR updates the edison M and L pe-layouts for A_WCYCL compsets and
ne30_oEC60to30 grids, to match the improved layouts described in Issue #1387.
It also adds a S pe-layout for the same configuration that gets just over
2 sypd on 39 nodes.

Tested with:

-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount S
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount M
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount L
[BFB]
jgfouca pushed a commit that referenced this issue Mar 13, 2018
Update edison pe-layouts for A_WCYCL compsets

This PR updates the edison M and L pe-layouts for A_WCYCL compsets and
ne30_oEC60to30 grids, to match the improved layouts described in Issue #1387.
It also adds a S pe-layout for the same configuration that gets just over
2 sypd on 39 nodes.

Tested with:

-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount S
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount M
-compset A_WCYCL1850S -mach edison -res ne30np4_oEC60to30v3_ICG -pecount L
[BFB]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants