Skip to content

Commit

Permalink
Develop (#8)
Browse files Browse the repository at this point in the history
* Updated Readme

* Added compat helper

* Simplified depdendencies

* Modified test.yml

* Added new abstractcosmoemu; updated CI

* Add dependency for CI

---------

Co-authored-by: Marco Bonici <bonici.marco@gmail.com>
  • Loading branch information
marcobonici and marcobonici authored Aug 16, 2023
1 parent b22b0ff commit 3c20f17
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 19 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
name: CI
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
tags: '*'
- push
- pull_request
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand All @@ -19,7 +12,8 @@ jobs:
version:
- '1.7'
- '1.8'
- '^1.9.0-0'
- '1.9'
- '~1.10.0-0'
os:
- ubuntu-latest
arch:
Expand All @@ -40,7 +34,6 @@ jobs:
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- run: julia --project=@. -e 'using Pkg; Pkg.add(url="https://github.com/CosmologicalEmulators/AbstractEmulator.jl")'
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
Expand Down
9 changes: 3 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name = "Bora"
uuid = "f2bc0970-dd97-4292-b510-1db90d18516e"
authors = ["marcobonici <bonici.marco@gmail.com>"]
version = "0.2.0"
version = "0.3.0"

[deps]
AbstractEmulator = "0dc76ace-04b2-4bd9-b691-6d8501953659"
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
SimpleChains = "de6bee2f-e2f4-4ec7-b6ed-219cc6f6e9e5"
AbstractCosmologicalEmulators = "c83c1981-e5c4-4837-9eb8-c9b1572acfc6"

[compat]
LoopVectorization = "0.12"
SimpleChains = "0.4"
AbstractCosmologicalEmulators = "0.3.1"
7 changes: 6 additions & 1 deletion src/Bora.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module Bora


using Base: @kwdef
using AbstractEmulator
using AbstractCosmologicalEmulators
import AbstractCosmologicalEmulators.get_emulator_description

abstract type AbstractξℓEmulator end

Expand Down Expand Up @@ -91,4 +92,8 @@ function get_ξℓs(cosmo_params, bb_params, ξℓs_emu::CompleteEmulator)
return Pls .+ BB
end

function get_emulator_description(Clemu::AbstractξℓEmulator)
get_emulator_description(Clemu.TrainedEmulator)
end

end # module
1 change: 0 additions & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[deps]
AbstractEmulator = "0dc76ace-04b2-4bd9-b691-6d8501953659"
SimpleChains = "de6bee2f-e2f4-4ec7-b6ed-219cc6f6e9e5"
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 comments on commit 3c20f17

Please sign in to comment.