Skip to content

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

Merged
janosh merged 4 commits into
masterfrom
f-str-paths
Aug 7, 2023
Merged

f-string path construction everywhere, no need for os.path.join(...)#3229
janosh merged 4 commits into
masterfrom
f-str-paths

Conversation

@janosh

@janosh janosh commented Aug 7, 2023

Copy link
Copy Markdown
Member

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
@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.

1 participant