-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
445e05d
commit 048d875
Showing
5 changed files
with
94 additions
and
154 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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
import numpy as np | ||
from abc import ABC, abstractmethod | ||
|
||
|
||
class BaseEmulator(ABC): | ||
"""Minimum amount of documentation""" | ||
|
||
@abstractmethod | ||
def emulate_p1d_Mpc(self,model,k_Mpc,return_covar=False,z=None): | ||
"""Minimum amount of documentation (input, output) """ | ||
pass | ||
def emulate_p1d_Mpc(self, model, k_Mpc, return_covar=False, z=None): | ||
""" | ||
Emulate P1D values for a given set of k values in Mpc units. | ||
Args: | ||
model (dict): Dictionary containing the model parameters. | ||
k_Mpc (np.ndarray): Array of k values in Mpc units. | ||
return_covar (bool, optional): Whether to return covariance. Defaults to False. | ||
z (float, optional): Redshift value. Defaults to None. | ||
Returns: | ||
np.ndarray: Emulated P1D values. | ||
""" | ||
pass |
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
Oops, something went wrong.