Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/restructure/autora' into restruc…
Browse files Browse the repository at this point in the history
…ture/autora
  • Loading branch information
hollandjg committed May 5, 2023
2 parents b136ae1 + 4405bbf commit 52466bb
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 6 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,35 @@ The release process is automated using GitHub Actions.
- GitHub actions will run to create and publish the PyPI and Anaconda packages, and publish the documentation. Check in
GitHub actions whether they run without errors and fix any errors which occur.
# How to add new packages
This demonstrates how to add a package published under autora-theorist-example in pyPI in the GitHub repository
example-contributor/contributor-theorist
## Add the package as optional dependency
In the `pyorject.toml` file add an optional dependency for the package in the [project.optional-dependencies] section:
```toml
example-theorist = ["autora-theorits-example"]
```
Add the example-theorist to be part of the all-theorists dependency:
```toml
all-theorists = [
...
"autora[example-theorist]",
...
]
```
## Import documentation from the package repository
Import the documentation in the `mkdocs.yml` file:
```yml
- User Guide:
- Theorists:
- Overview: 'theorist/overview.md'
...
- Example Theorist: '!import https://github.com/example-contributor/contributor-theorist/?branch=main&extra_imports=["mkdocs/base.yml"]'
...
```
# How to Develop
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Automated Research Assistant

<b>[AutoRA](https://pypi.org/project/autora/)</b> (<b>Au</b>tomated <b>R</b>esearch <b>A</b>ssistant) is an open-source framework for
<b>[AutoRA](https://pypi.org/project/autora/)</b> (<b>Auto</b>mated <b>R</b>esearch <b>A</b>ssistant) is an open-source framework for
automating multiple stages of the empirical research process, including model discovery, experimental design, data collection, and documentation for open science.

![Autonomous Empirical Research Paradigm](img/overview.png)
Expand Down
File renamed without changes.
13 changes: 8 additions & 5 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ theme:
features:
- content.action.edit
- content.action.view
- navigation.indexes

nav:
- Introduction: 'index.md'
Expand All @@ -38,14 +39,16 @@ nav:
- Closed-Loop Discovery
- User Guide:
- Theorists:
- Overview: 'theorist/overview.md'
- Home: 'theorist/index.md'
- DARTS: '!import https://github.com/autoresearch/autora-theorist-darts/?branch=main&extra_imports=["mkdocs/base.yml"]'
- BSR
- BMS
- BMS: '!import https://github.com/autoresearch/autora-theorist-bms/?branch=main&extra_imports=["mkdocs/base.yml"]'
- BSR: '!import https://github.com/autoresearch/autora-theorist-bsr/?branch=main&extra_imports=["mkdocs/base.yml"]'
- Experimentalists:
- Overview: 'experimentalists/overview.md'
- Home: 'experimentalists/index.md'
- Novelty Sampler: '!import https://github.com/autoresearch/autora-novelty-sampler/?branch=main&extra_imports=["mkdocs/base.yml"]'
- Inequality Sampler: '!import https://github.com/autoresearch/autora-experimentalist-inequality-sampler/?branch=main&extra_imports=["mkdocs/base.yml"]'
- Experiment Runners:
- Overview: 'experiment-runner/overview.md'
- Home: 'experiment-runner/index.md'
- Synthetic Datasets: '!import https://github.com/autoresearch/autora-synthetic-data/?branch=main&extra_imports=["mkdocs/base.yml"]'
- Workflow: '!import https://github.com/autoresearch/autora-workflow/?branch=main&extra_imports=["mkdocs/base.yml"]'
- Contributor Guide:
Expand Down
16 changes: 16 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,27 @@ all = [

all-theorists = [
"autora[theorist-darts]",
"autora[theorist-bms]",
"autora[theorist-bsr]",
]
theorist-darts = [
"autora-theorist-darts",
]
theorist-bms = [
"autora-theorist-bms",
]
theorist-bsr = [
"autora-theorist-bsr",
]
all-experimentalists = [
"autora[experimentalist-inequality-sampler]",
"autora[experimentalist-novelty-sampler]",
]
experimentalist-novelty-sampler =[
"autora-novelty-sampler"
]
experimentalist-inequality-sampler =[
"autora-experimentalist-inequality-sampler"
]
all-experiment-runners = [
]
Expand Down

0 comments on commit 52466bb

Please sign in to comment.