Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis fixes #83

Merged
merged 2 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash

pipx install --python python3.9 --force $1 .
# optional pipx arguments can be passed as the first argument
# e.g. ./install.sh --verbose --editable

# Remove existing installs
pipx uninstall ClayCodeTests > /dev/null 2>&1
pipx uninstall ClayCode > /dev/null 2>&1

# Install the package
pipx install --python python3.10 --force $1 .
3 changes: 2 additions & 1 deletion package/ClayCode/core/gmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,15 @@ def get_mdp_parameter_file(
file_or_str=mdp_str,
freeze_dims=freeze_dims,
)
if define is not None:
if define is not None and not isinstance(define, bool):
if isinstance(define, str):
define_str = f"-D{define}"
else:
for definition in define:
define_str = " ".join(
list(map(lambda d: f"-D{d}", definition))
)
pass
mdp_str = set_mdp_parameter("define", define_str, mdp_str)
mdp_str = re.sub(
"(^|\n)[^\n]*?\s*?=\s*?\n",
Expand Down
Loading