Skip to content
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
2 changes: 1 addition & 1 deletion doc/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Query the number of evaluators
evaluators = jms_api.get_evaluators()

# print number of Windows and Linux evaluators connected to the DCS server
print( len([e for e in evaluators if e.platform == "Windows" ]) )
print( len([e for e in evaluators if e.platform == "windows" ]) )
print( len([e for e in evaluators if e.platform == "Linux" ]) )


Expand Down
2 changes: 1 addition & 1 deletion examples/fluent_nozzle/project_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_project(client, name, num_jobs=20, use_exec_script=False):
"""
jms_api = JmsApi(client)
log.debug("=== Project")
proj = Project(name=name, priority=1, active=False)
proj = Project(name=name, priority=1, active=True)
proj = jms_api.create_project(proj, replace=True)

project_api = ProjectApi(client, proj.id)
Expand Down
4 changes: 2 additions & 2 deletions examples/mapdl_motorbike_frame/project_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def query_stats(client, project_name):
log.info("=== Query values and compoute statistics ===")
jms_api = JmsApi(client)
log.info("=== Project")
project = jms_api.get_project(name=project_name)
project = jms_api.get_project_by_name(name=project_name)
log.info(f"ID: {project.id}")
log.info(f"Created on: {project.creation_time}")

Expand Down Expand Up @@ -73,7 +73,7 @@ def download_files(client, project_name):
log.info(f"Downloading files to {out_path}")

jms_api = JmsApi(client)
project = jms_api.get_project(name=project_name)
project = jms_api.get_project_by_name(name=project_name)
# Todo: Fix needed in the backend:
# Currently only the get_project() called with id returns all fields of project.
project = jms_api.get_project(id=project.id)
Expand Down