Skip to content

Commit

Permalink
check number_of_packings before post_and_open
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Sep 18, 2023
1 parent 4ae832a commit 919d9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellpack/autopack/writers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def save_as_simularium(self, env, all_ingr_as_array, compartments):
file_name = env.helper.writeToFile(
env.result_file, env.boundingBox, env.name, env.version
)
if env.config_data is None or env.config_data.get("upload_results", True):
if env.config_data.get("number_of_packings", 1) <= 1:
autopack.helper.post_and_open_file(file_name)

def save_Mixed_asJson(
Expand Down

0 comments on commit 919d9a4

Please sign in to comment.