-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from CosmoStat/dummy_main
Pre-release v2.0.0
- Loading branch information
Showing
419 changed files
with
24,590 additions
and
27,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: CD | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
docs: | ||
name: Deploy API documentation | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10.5 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10.5" | ||
|
||
- name: Check Python Version | ||
run: python --version | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install ".[docs]" | ||
- name: Build API documentation | ||
run: | | ||
sphinx-apidoc -Mfeo docs/source src/wf_psf | ||
sphinx-build docs/source docs/build | ||
- name: Deploy API documentation | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: docs/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
test-full: | ||
runs-on: [ubuntu-latest] | ||
|
||
steps: | ||
- name: | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10.5 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10.5" | ||
|
||
- name: Install dependencies | ||
run: python -m pip install ".[test]" | ||
|
||
- name: Test with pytest | ||
run: python -m pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
training_conf: training_config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Training and test data sets for training and/or metrics evaluation | ||
data: | ||
training: | ||
# Specify directory path to data; Default setting is /path/to/repo/data | ||
data_dir: data/coherent_euclid_dataset/ | ||
file: train_Euclid_res_200_TrainStars_id_001.npy | ||
# if training data set file does not exist, generate a new one by setting values below | ||
stars: null | ||
positions: null | ||
SEDS: null | ||
zernike_coef: null | ||
C_poly: null | ||
params: # | ||
d_max: 2 | ||
max_order: 45 | ||
x_lims: [0, 1000.0] | ||
y_lims: [0, 1000.0] | ||
grid_points: [4, 4] | ||
n_bins: 20 | ||
max_wfe_rms: 0.1 | ||
oversampling_rate: 3.0 | ||
output_Q: 3.0 | ||
output_dim: 32 | ||
LP_filter_length: 2 | ||
pupil_diameter: 256 | ||
euclid_obsc: true | ||
n_stars: 200 | ||
test: | ||
data_dir: data/coherent_euclid_dataset/ | ||
file: test_Euclid_res_id_001.npy | ||
# If test data set file not provided produce a new one | ||
stars: null | ||
noisy_stars: null | ||
positions: null | ||
SEDS: null | ||
zernike_coef: null | ||
C_poly: null | ||
parameters: | ||
d_max: 2 | ||
max_order: 45 | ||
x_lims: [0, 1000.0] | ||
y_lims: [0, 1000.0] | ||
grid_points: [4,4] | ||
max_wfe_rms: 0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[loggers] | ||
keys=root, simpleLogger | ||
|
||
[handlers] | ||
keys=consoleHandler, fileHandler | ||
|
||
[formatters] | ||
keys=simpleFormatter | ||
|
||
[logger_root] | ||
level=DEBUG | ||
handlers=consoleHandler, fileHandler | ||
|
||
[logger_simpleLogger] | ||
level=DEBUG | ||
handlers=consoleHandler, fileHandler | ||
qualname=simpleLogger | ||
propagate=0 | ||
|
||
[handler_consoleHandler] | ||
class=StreamHandler | ||
level=DEBUG | ||
formatter=simpleFormatter | ||
args=(sys.stdout,) | ||
|
||
[handler_fileHandler] | ||
class=FileHandler | ||
level=DEBUG | ||
formatter=simpleFormatter | ||
args=('%(filename)s', 'w') | ||
|
||
[formatter_simpleFormatter] | ||
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s |
Oops, something went wrong.