Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2024
1 parent 2ef09ab commit 79f8d76
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions reproducibility_project/project-analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ def create_largest_t0_operations(
@Project.post(lambda job: job.doc.get(f"{ensemble}/max_t0") is not None)
def write_largest_t0(job):
"""Write out maximium t0 for all subsampled values in npt production."""
#job.doc[f"{ensemble}/max_t0"] = _get_largest_t0( # note that this was overwritten such that all production data is used
# job.doc[f"{ensemble}/max_t0"] = _get_largest_t0( # note that this was overwritten such that all production data is used
# job, ensemble=ensemble, props=prop_list
#)
# )
job.doc[f"{ensemble}/max_t0"] = 0


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,13 @@ def _save_single_scatter_labels(


def single_plot_comparisons(
df, splitby, combMCMD, plot_type, average_replicas=False, figdir="combined", errormax=None
df,
splitby,
combMCMD,
plot_type,
average_replicas=False,
figdir="combined",
errormax=None,
):
"""Plot deviations split into splitby groupings on xaxis and compared to their statepoint and/or MD/MC means."""
if average_replicas:
Expand Down Expand Up @@ -487,7 +493,7 @@ def single_plot_comparisons(
color_labels,
average_replicas,
rotation=45,
wrap_labels=False
wrap_labels=False,
) # formatting for all plots
if errormax:
ax.set_ylim(-errormax, errormax)
Expand Down Expand Up @@ -723,7 +729,9 @@ def looper_for_plotting_single_data(df):
"""Seperate out plotting data from source specific dataframes."""
for filter_method in ["MoSDeF", "RR", None]:
if filter_method:
plotDF = copy.deepcopy(df.loc[df["associated_work"] == filter_method])
plotDF = copy.deepcopy(
df.loc[df["associated_work"] == filter_method]
)
for use_replica_avg in (True, False):
for splitby in ["ff-mol", "forcefield", "associated_work"]:
for combMCMD in [True, False]:
Expand All @@ -745,7 +753,7 @@ def looper_for_plotting_single_data(df):
plot_type=plot_type,
average_replicas=use_replica_avg,
figdir=filter_method,
errormax=3.0
errormax=3.0,
)
else:
single_plot_comparisons(
Expand Down Expand Up @@ -1011,7 +1019,7 @@ def print_errors_for_text(df):
},
]

stack_plot_comparisons(df, stack2) # try other plotting
stack_plot_comparisons(df, stack2) # try other plotting

stack3 = [
{
Expand Down

0 comments on commit 79f8d76

Please sign in to comment.