Skip to content

Commit

Permalink
updated package name
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerapritchard authored May 2, 2024
1 parent ba8d713 commit ec6d695
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 17 deletions.
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
sys.path.insert(0, os.path.abspath("../../src/"))
sys.path.insert(0, os.path.abspath("../../src/tssc"))

project = "Timeseries Simple Search Combo (tssc)"
project = "lksearch"
copyright = "2024, TESS Science Support Center"
author = "TESS Science Support Center"
release = "0.1.dev"
Expand All @@ -46,8 +46,6 @@
"sphinx_automodapi.automodapi",
"numpydoc",
"sphinx.ext.intersphinx",
"myst_parser",
# "pandoc",
]

templates_path = ["_templates"]
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "tssc"
name = "lksearch"
version = "0.1.0"
description = "Helpful package to search for TESS/Kepler/K2 data"
description = "A helpful little package to search for TESS/Kepler/K2 data"
authors = ["TESS SCience Support Center <[email protected]>"]
license = "MIT"
readme = "README.md"
Expand All @@ -25,7 +25,6 @@ pytest = "^7.4.4"
nbsphinx = "^0.9.3"
sphinx = "^7.3.7"
sphinx_rtd_theme = "^2.0.0"
myst_parser = "^3.0.0"
sphinx_astropy = "^1.9.1"
sphinx_automodapi = "^0.17.0"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/tssc/__init__.py → src/lksearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Conf(_config.ConfigNamespace):
List of extra columns to be included when displaying a SearchResult object.
cache_dir
Default cache directory for data files downloaded, etc. Defaults to ``~/.tssc/cache`` if not specified.
Default cache directory for data files downloaded, etc. Defaults to ``~/.lksearch/cache`` if not specified.
"""

Expand All @@ -42,14 +42,14 @@ class Conf(_config.ConfigNamespace):
[],
"List of extra columns to be included when displaying a SearchResult object.",
cfgtype="string_list",
module="tssc.search",
module="lksearch.search",
)

cache_dir = _config.ConfigItem(
None,
"Default cache directory for data files downloaded, etc.",
cfgtype="string",
module="tssc.config",
module="lksearch.config",
)


Expand Down
12 changes: 6 additions & 6 deletions src/tssc/config/__init__.py → src/lksearch/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import astropy.config as astropyconfig


ROOTNAME = "tssc"
ROOTNAME = "lksearch"
PREFER_CLOUD = True # Do you prefer URIs pointing to the Amazon bucket when available?
DOWNLOAD_CLOUD = True

Expand All @@ -24,9 +24,9 @@ def get_config_dir():
Determines the package configuration directory name and creates the
directory if it doesn't exist.
This directory is typically ``$HOME/.tssc/config``, but if the
This directory is typically ``$HOME/.lksearch/config``, but if the
XDG_CONFIG_HOME environment variable is set and the
``$XDG_CONFIG_HOME/tssc`` directory exists, it will be that directory.
``$XDG_CONFIG_HOME/lksearch`` directory exists, it will be that directory.
If neither exists, the former will be created and symlinked to the latter.
Returns
Expand All @@ -40,13 +40,13 @@ def get_config_dir():

def get_cache_dir():
"""
Determines the default TSSC cache directory name and creates the
Determines the default lksearch cache directory name and creates the
directory if it doesn't exist. If the directory cannot be access or created,
then it returns the current directory (``"."``).
This directory is typically ``$HOME/.tssc/cache``, but if the
This directory is typically ``$HOME/.lksearch/cache``, but if the
XDG_CACHE_HOME environment variable is set and the
``$XDG_CACHE_HOME/tssc`` directory exists, it will be that directory.
``$XDG_CACHE_HOME/lksearch`` directory exists, it will be that directory.
If neither exists, the former will be created and symlinked to the latter.
The value can be also configured via ``cache_dir`` configuration parameter.
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

import shutil

from tssc.utils import SearchError, SearchWarning
from lksearch.utils import SearchError, SearchWarning

from tssc import MASTSearch, TESSSearch, KeplerSearch, K2Search
from lksearch import MASTSearch, TESSSearch, KeplerSearch, K2Search


def test_search_cubedata():
Expand Down

0 comments on commit ec6d695

Please sign in to comment.