Skip to content

Commit

Permalink
modified doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGilardoni committed Oct 11, 2024
1 parent 6a9806a commit 06088fe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
9 changes: 6 additions & 3 deletions MDRefine/data_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class data_global_class:
String with the path of the directory with input files.
--------
Returns:
Returns
--------
system_names : list
List of names of the investigated molecular systems.
Expand Down Expand Up @@ -235,7 +235,10 @@ class data_class:
Name of the molecular system taken into account.
--------
Returns:
Output
Parameters
--------
temperature : float
Value for the temperature at which the trajectory is simulated.
Expand Down Expand Up @@ -435,7 +438,7 @@ class data_cycle_class:
Dictionary for the information about the temperature of `cycle_name` thermodynamic cycle.
--------
Returns:
Returns
--------
gexp_DDG : list
List of two elements: the experimental value and uncertainty of the Delta Delta G.
Expand Down
5 changes: 4 additions & 1 deletion MDRefine/hyperminimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,10 @@ def hyper_function(
Number of parallel jobs.
--------
Returns:
Output
Parameters
--------
tot_chi2: float
Expand Down
18 changes: 14 additions & 4 deletions MDRefine/loss_and_minimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def normalize_observables(gexp, g, weights=None):
Numpy 1-dimensional array, by default `None` (namely, equal weight for each frame).
--------
Returns:
Output
Parameters:
--------
norm_g, norm_gexp : dict
Dictionaries for normalized g and gexp.
Expand Down Expand Up @@ -258,7 +260,9 @@ def compute_chi2(ref, weights, g, gexp, if_separate=False):
`name_type + ' UPPER'`), needed for minimizations with double bounds.
--------
Returns:
Output
Parameters:
--------
This tool returns 4 variables: 3 dictionaries (with keys running over different kinds of observables) and 1 float:
Expand Down Expand Up @@ -350,7 +354,10 @@ def compute_DeltaDeltaG_terms(data, logZ_P):
logZ_P : dict
Dictionary for logarithm of the partition function Z_P, namely, average value of e^{-V_\phi(x)/temperature} over the original ensemble.
--------
Returns:
Output
Parameters:
--------
new_av_DG : dict
Dictionary of reweighted averages of Delta G.
Expand Down Expand Up @@ -1312,7 +1319,10 @@ def select_traintest(
with shape `(n_frames, n_replicas)` containing numbers from 0 to `n_replicas - 1` which indicate corresponding
temperatures (for each replica index in `axis=1`).
--------
Returns:
Output
Parameters:
--------
data_train, data_test : class instances
Class instances for training and test data; `data_test` includes:
Expand Down

0 comments on commit 06088fe

Please sign in to comment.