Skip to content

Commit

Permalink
Merge pull request #80 from lephare-photoz/issue/79/fix-trivial-ruff-…
Browse files Browse the repository at this point in the history
…warnings

Ruff autofix run to make trivial changes to let it pass
  • Loading branch information
raphaelshirley authored Apr 5, 2024
2 parents 6b95888 + 6d72c51 commit 26d6c77
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/Building_list_of_onesources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"source": [
"config_file = \"./data/COSMOS.para\"\n",
"keymap = lp.read_config(config_file)\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap,additional_files=[\"examples/COSMOS.in\"])"
"lp.data_retrieval.get_auxiliary_data(keymap=keymap, additional_files=[\"examples/COSMOS.in\"])"
]
},
{
Expand Down Expand Up @@ -62,7 +62,7 @@
"metadata": {},
"outputs": [],
"source": [
"#before running PhotoZ we must run sedtolib and maggal\n",
"# before running PhotoZ we must run sedtolib and maggal\n",
"sedlib = lp.Sedtolib(config_keymap=keymap)\n",
"sedlib.run(typ=\"STAR\", star_sed=\"$LEPHAREDIR/sed/STAR/STAR_MOD_ALL.list\")\n",
"sedlib.run(typ=\"QSO\", qso_sed=\"$LEPHAREDIR/sed/QSO/SALVATO09/AGN_MOD.list\", gal_lib=\"LIB_QSO\")\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Example_SED_manipulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"source": [
"config_file = \"./data/COSMOS.para\"\n",
"keymap = lp.read_config(config_file)\n",
"#Get the auxiliary files required.\n",
"# Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions docs/notebooks/Example_full_run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
"source": [
"config_file = \"./data/COSMOS.para\"\n",
"keymap = lp.read_config(config_file)\n",
"#Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap,additional_files=[\"examples/COSMOS.in\"])"
"# Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap, additional_files=[\"examples/COSMOS.in\"])"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Example_of_usage_of_magSvc.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"source": [
"config_file = \"./data/COSMOS.para\"\n",
"keymap = lp.read_config(config_file)\n",
"#Get the auxiliary files required.\n",
"# Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
"source": [
"config_file = \"./data/COSMOS.para\"\n",
"keymap = lp.read_config(config_file)\n",
"#Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap,additional_files=[\"examples/COSMOS.in\"])"
"# Get the auxiliary files required.\n",
"lp.data_retrieval.get_auxiliary_data(keymap=keymap, additional_files=[\"examples/COSMOS.in\"])"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion src/lephare/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os

from platformdirs import user_cache_dir
import warnings


class DataManager:
Expand Down
1 change: 0 additions & 1 deletion src/lephare/data_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,3 @@ def get_auxiliary_data(lephare_dir=LEPHAREDIR, keymap=None, additional_files=Non
if additional_files is not None:
file_list += additional_files
download_all_files(retriever, file_list, ignore_registry=False)

3 changes: 1 addition & 2 deletions tests/lephare/test_data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import time

import pytest
from platformdirs import user_cache_dir

from lephare import data_manager as dm
from platformdirs import user_cache_dir


def test_data_manager_default_directories(unset_env_vars):
Expand Down

0 comments on commit 26d6c77

Please sign in to comment.