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

f-string path construction everywhere, no need for os.path.join(...) #3229

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

janosh
Copy link
Member

@janosh janosh commented Aug 7, 2023

No description provided.

@janosh janosh added performance Some functionality is too slow or regressed dx Developer experience labels Aug 7, 2023
@janosh janosh enabled auto-merge (squash) August 7, 2023 18:48
>       rdx_25 = list(parse_lammps_dumps(file_pattern=rdx_25_pattern))

tests/io/lammps/test_outputs.py:67:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pymatgen/io/lammps/outputs.py:118: in parse_lammps_dumps
    files = sorted(files, key=lambda f: int(re.match(pattern, f).group(1)))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

f = '/home/runner/work/pymatgen/pymatgen/tests/files/lammps/dump.rdx_wc.100'

>   files = sorted(files, key=lambda f: int(re.match(pattern, f).group(1)))
@janosh janosh merged commit 23e0613 into master Aug 7, 2023
28 checks passed
@janosh janosh deleted the f-str-paths branch August 7, 2023 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx Developer experience performance Some functionality is too slow or regressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant