-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: website | ||
|
||
# build the documentation whenever there are new commits on main | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# Alternative: only build for tags. | ||
# tags: | ||
# - '*' | ||
|
||
# security: restrict permissions for CI jobs. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
# Build the documentation and upload the static HTML files as an artifact. | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
# ADJUST THIS: install all dependencies (including pdoc) | ||
- run: pip install -e . | ||
- run: pip install pdoc | ||
# ADJUST THIS: build your documentation into docs/. | ||
# We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here. | ||
- run: pdoc --docformat google -o docs/.html src | ||
|
||
- uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: docs/ | ||
|
||
# Deploy the artifact to GitHub pages. | ||
# This is a separate job so that only actions/deploy-pages has the necessary permissions. | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- id: deployment | ||
uses: actions/deploy-pages@v2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Class Design | ||
Here we will outline the different kind of classes that are used in slune and how they interact with each other. There are 3 types: | ||
- 'Searcher' classes - these are the classes that are used to define and traverse a search space. | ||
- 'Logger' classes - these are the classes that are used to create and read log files. | ||
- 'Saver' classes - these are the classes that are used to save logs to files and read logs from files. | ||
|
||
The base module is where the base classes for each of these types are defined. The base classes are: | ||
- BaseSearcher | ||
- BaseLogger | ||
- BaseSaver | ||
|
||
To create a new searcher, logger or saver, you must inherit from the appropriate base class and implement the required methods. The required methods will have the '@abc.abstractmethod' decorator above them and will throw errors if they are not implemented. The compulsory methods allow for well-defined interactions between the different classes and should allow for any combination of searcher, logger and saver to be used together. | ||
|
||
Please read the docs for the base classes to see what methods are required to be implemented and how they should be implemented. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="refresh" content="0; url=./src.html"/> | ||
</head> | ||
</html> |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Empty | ||
""" | ||
.. include:: ../README.md | ||
.. include:: ../CLASSDESIGN.md | ||
""" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
# from .slune import submit_job, sbatchit | ||
# __all__ = ['slune', 'base', 'utils', 'loggers', 'savers', 'searchers' ] | ||
|
||
from .searchers import grid | ||
from .savers import csv | ||
from .loggers import default | ||
from .searchers import * | ||
from .savers import * | ||
from .loggers import * | ||
from .slune import submit_job, sbatchit, lsargs, garg, get_csv_slog | ||
from . import base, utils | ||
|
||
__all__ = ['submit_job', 'sbatchit', 'lsargs', 'garg', 'get_csv_slog', | ||
'base', 'utils', 'default', 'grid', 'csv'] | ||
# __all__ = ['submit_job', 'sbatchit', 'lsargs', 'garg', 'get_csv_slog', | ||
# 'base', 'utils', 'default', 'grid', 'csv'] | ||
|
||
import importlib.metadata | ||
__version__ = importlib.metadata.version("slune-lib") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .default import LoggerDefault | ||
|
||
__all__ = ['LoggerDefault'] | ||
# __all__ = ['LoggerDefault'] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .csv import SaverCsv | ||
|
||
__all__ = ['SaverCsv'] | ||
# __all__ = ['SaverCsv'] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .grid import SearcherGrid | ||
|
||
__all__ = ['SearcherGrid'] | ||
# __all__ = ['SearcherGrid'] |