Skip to content

Commit

Permalink
cosmetic tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
henricasanova committed Jan 19, 2024
1 parent c70df48 commit bcc43da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/workflow_simulator_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
import pathlib
import sys
import json

import wrench
Expand Down
10 changes: 5 additions & 5 deletions wrench/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def get_input_files(self) -> List[str]:
return self.simulation._workflow_get_input_files()

def create_workflow_from_json(self, json_object: json, reference_flop_rate: str, ignore_machine_specs: bool,
redundant_dependencies: bool, ignore_cycle_creating_dependencies: bool, min_cores_per_task: float,
max_cores_per_task: float, enforce_num_cores: bool, ignore_avg_cpu: bool, show_warnings: bool) -> str:
redundant_dependencies: bool, ignore_cycle_creating_dependencies: bool, min_cores_per_task: float,
max_cores_per_task: float, enforce_num_cores: bool, ignore_avg_cpu: bool, show_warnings: bool) -> str:
"""
Create a workflow from a WfCommons JSON
:param json_object: A JSON object created from a WfCommons JSON file
Expand Down Expand Up @@ -105,9 +105,9 @@ def create_workflow_from_json(self, json_object: json, reference_flop_rate: str,
:rtype: str
"""
return self.simulation._create_workflow_from_json(json_object, reference_flop_rate, ignore_machine_specs,
redundant_dependencies, ignore_cycle_creating_dependencies,
min_cores_per_task, max_cores_per_task, enforce_num_cores,
ignore_avg_cpu, show_warnings)
redundant_dependencies, ignore_cycle_creating_dependencies,
min_cores_per_task, max_cores_per_task, enforce_num_cores,
ignore_avg_cpu, show_warnings)

def __str__(self) -> str:
"""
Expand Down

0 comments on commit bcc43da

Please sign in to comment.