Skip to content

Commit 464850c

Browse files
committed
Initial commit
1 parent b5543d5 commit 464850c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7158
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# https://stackoverflow.com/a/58004619
2+
*.ipynb filter=strip-notebook-output

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
main:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- uses: goanpeca/setup-miniconda@v1
13+
with:
14+
activate-environment: synthia-test
15+
environment-file: environment-test.yml
16+
17+
# Install all dev dependencies to build notebooks etc.
18+
- uses: goanpeca/setup-miniconda@v1
19+
with:
20+
activate-environment: synthia
21+
environment-file: environment.yml
22+
23+
- name: Install Synthia (dev env)
24+
# 'shell' required to activate environment.
25+
# See https://github.com/goanpeca/setup-miniconda#important.
26+
shell: bash -l {0}
27+
run: pip install .
28+
29+
- name: Build docs
30+
shell: bash -l {0}
31+
run: sphinx-build -v -b html docs/ docs/_build/fcQP3CXVFuXRU8pz
32+
33+
- name: Publish docs
34+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
35+
uses: peaceiris/actions-gh-pages@v3
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: docs/_build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# This project
2+
.vscode/
3+
14
# Byte-compiled / optimized / DLL files
25
__pycache__/
36
*.py[cod]

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing
2+
3+
TODO

DEVELOP.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Development notes
2+
3+
This are temporary development notes until we have a stable version on PyPI.
4+
5+
6+
## Conda environment (optional)
7+
8+
Only required if you wish to install all the required prerequisites in [Miniconda](https://docs.conda.io/en/latest/miniconda.html)/[Anaconda](https://www.anaconda.com/) for local development and testing
9+
10+
```
11+
conda env create -f environment.yml
12+
```
13+
14+
Then activate with `conda activate synthia`.
15+
16+
17+
## Install synthia
18+
19+
During development:
20+
21+
```
22+
pip install -e .
23+
```
24+
25+
26+
## Documentation
27+
28+
```
29+
sphinx-build -v -b html docs/ docs/_build/
30+
```
31+
32+
Use `SKIP_NB=1` to skip building the example notebooks (they take a while to build):
33+
```
34+
SKIP_NB=1 sphinx-build -v -b html docs/ docs/_build/
35+
```
36+
37+
## Docstrings
38+
39+
Use [Google Style Python Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/index.html#google-vs-numpy).
40+
41+
Note that type hints are intentionally not rendered as some of them become too complex and are better described in prose, following xarray's style.

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 D. Meyer, T. Nagler, M. Riechert
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<div align="center">
2+
<img src="assets/img/logo.png" alt="synthia" height="120"><br><br>
3+
4+
5+
[Overview](#overview) | [Documentation](#documentation) | [How to cite](#how-to-cite) | [Contributing](#contributing) | [Development notes](#development-notes) | [Copyright and license](#copyright-and-license)
6+
</div>
7+
8+
## Overview
9+
10+
Synthia is tool for generating (continuous) synthetic data for regression problems in Machine Learning (ML).
11+
[TODO]
12+
13+
14+
## Documentation
15+
16+
For installation instructions, tutorials and general information, see https://dmey.github.io/synthia.
17+
18+
## How to cite
19+
20+
[TODO]
21+
22+
## Contributing
23+
24+
See [CONTRIBUTING.md](CONTRIBUTING.md).
25+
26+
## Development notes
27+
28+
See [DEVELOP.md](DEVELOP.md).
29+
30+
## Copyright and license
31+
32+
Copyright 2020 D. Meyer, T. Nagler, M. Riechert. Licensed under [MIT](LICENSE.txt).

assets/img/logo.png

70.9 KB
Loading

assets/img/logo.svg

Lines changed: 4607 additions & 0 deletions
Loading

docs/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# We create this from LICENSE.txt at root.
2+
contributing.md
3+
develop.md
4+
license.md
5+
overview.md
6+
7+
_build/
8+
data/

0 commit comments

Comments
 (0)