Skip to content

Commit

Permalink
Merge branch 'master' into simplify_data_in
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B authored Aug 13, 2024
2 parents b0e97dd + 6c51fc2 commit 8610def
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ packages = find:
zip_safe = True
include_package_data = True
install_requires =
SpiNNMachine == 1!7.1.1
SpiNNMachine == 1!7.2.2
websocket-client

[options.packages.find]
Expand Down
4 changes: 2 additions & 2 deletions spinnman/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__ = "1!7.1.1"
__version__ = "1!7.2.2"
__version_month__ = "TBD"
__version_year__ = "TBD"
__version_day__ = "TBD"
__version_name__ = "Post_HBP"
__version_name__ = "TO DO"
11 changes: 11 additions & 0 deletions spinnman/spalloc/spalloc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,17 @@ def __init__(
self.__nmpi_user = nmpi_user
logger.info("established session to {} for {}", service_url, username)

def get_job(self, job_id: str) -> SpallocJob:
"""
Get a job by its job id.
:param str job_id: The job id.
:rtype: SpallocJob
"""
assert self.__session
return _SpallocJob(
self.__session, fix_url(f"{self.__jobs_url}/{job_id}"))

@staticmethod
def open_job_from_database(
service_url, job_url, cookies, headers) -> SpallocJob:
Expand Down

0 comments on commit 8610def

Please sign in to comment.