Skip to content

Commit

Permalink
Use generator in the same line it is constructed; remove unclear vari…
Browse files Browse the repository at this point in the history
…able name jsi.
  • Loading branch information
bdice committed Aug 7, 2021
1 parent 233f4fc commit f694714
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions signac/contrib/import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def _make_schema_based_path_function(jobs, exclude_keys=None, delimiter_nested="
return lambda job, sep=None: ""

index = [{"_id": job.id, "sp": job.sp()} for job in jobs]
jsi = _build_job_statepoint_index(exclude_const=True, index=index)
sp_index = OrderedDict(jsi)
sp_index = OrderedDict(_build_job_statepoint_index(exclude_const=True, index=index))

paths = {}
for key_tokens, values in sp_index.items():
Expand Down

0 comments on commit f694714

Please sign in to comment.