diff options
author | zsloan | 2023-05-22 17:59:00 +0000 |
---|---|---|
committer | zsloan | 2023-05-22 17:59:00 +0000 |
commit | 8de60b4b23d9613ff54275791536afb3ba1b2c39 (patch) | |
tree | d99d9ea1339b0b53b8b60b4f751a1dda232d2667 /gn3 | |
parent | b8af8e46c7da04aea1ad436b376e572de8a25aa4 (diff) | |
download | genenetwork3-8de60b4b23d9613ff54275791536afb3ba1b2c39.tar.gz |
Use string literal concatenation to make genofile_path line shorter
Diffstat (limited to 'gn3')
-rw-r--r-- | gn3/db/datasets.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py index 4352a2d..8839f2e 100644 --- a/gn3/db/datasets.py +++ b/gn3/db/datasets.py @@ -13,7 +13,10 @@ def retrieve_sample_list(group: str): """ samplelist = [] - genofile_path = f"{os.environ.get('GENENETWORK_FILES', '/home/gn2/production/genotype_files/')}/genotype/{group}.geno" + genofile_path = ( + f'{os.environ.get("GENENETWORK_FILES", "/home/gn2/production/genotype_files/")}' + f'/genotype/{group}.geno' + ) if os.path.isfile(genofile_path): with open(genofile_path, encoding="utf-8") as genofile: line = "" |