Skip to content

Commit 0a1c4a0

Browse files
committed
Merge branch 'dev' into feature/auto-abort
2 parents ed1ca61 + e68f7f7 commit 0a1c4a0

File tree

2 files changed

+34
-29
lines changed

2 files changed

+34
-29
lines changed

CHANGELOG.md

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,130 @@
11
# Change log
22

3-
## v0.15.0
3+
## Unreleased
44

5-
* Support v2 server.
5+
* Refactor and re-write of codebase to align with latest developments in version 2 of the Simvue server.
6+
* Added `Executor` to Simvue runs allowing users to start shell based processes as part of a run and handle termination of these.
7+
* Removal of obsolete functions due to server change, and renaming of functions and parameters (see [documentation](https://docs.simvue.io)).
8+
* Added pre-request validation to both `Client` and `Run` class methods via Pydantic.
9+
* Separation of save functionality into `save_file` and `save_object`.
10+
* Fixed issue whereby metrics would still have to wait for the next iteration of dispatch before being sent to the server, even if the queue was not full.
11+
* Added support for `'user'` alerts.
612

7-
## v0.14.3
13+
## [v0.14.3](https://github.com/simvue-io/client/releases/tag/v0.14.3) - 2023-06-29
814

915
* Ensure import of the `requests` module is only done if actually used.
1016

11-
## v0.14.0
17+
## [v0.14.0](https://github.com/simvue-io/client/releases/tag/v0.14.0) - 2023-04-04
1218

1319
* Added a method to the `Client` class for retrieving events.
1420

15-
## v0.13.3
21+
## [v0.13.3](https://github.com/simvue-io/client/releases/tag/v0.13.3) - 2023-04-04
1622

1723
* Allow files (`input` and `code` only) to be saved for runs in the `created` state.
1824
* Allow metadata and tags to be updated for runs in the `created` state.
1925

20-
## v0.13.2
26+
## [v0.13.2](https://github.com/simvue-io/client/releases/tag/v0.13.2) - 2023-04-04
2127

2228
* Added `plot_metrics` method to the `Client` class to simplify plotting metrics.
2329
* (Bug fix) `reconnect` works without a uuid being specified when `offline` mode isn't being used.
2430
* (Bug fix) Restrict version of Pydantic to prevent V2 from accidently being used.
2531

26-
## v0.13.1
32+
## [v0.13.1](https://github.com/simvue-io/client/releases/tag/v0.13.1) - 2023-03-28
2733

2834
* Set `sample_by` to 0 by default (no sampling) in `get_metrics_multiple`.
2935

30-
## v0.13.0
36+
## [v0.13.0](https://github.com/simvue-io/client/releases/tag/v0.13.0) - 2023-03-28
3137

3238
* Added methods to the `Client` class for retrieving metrics.
3339
* CPU architecture and processor obtained on Apple hardware.
3440
* Client now reports to server when files have been successfully uploaded.
3541
* `User-Agent` header now included in HTTP requests.
3642

37-
## v0.12.0
43+
## [v0.12.0](https://github.com/simvue-io/client/releases/tag/v0.12.0) - 2023-03-13
3844

3945
* Add methods to the `Client` class for deleting runs and folders.
4046
* Confusing messages about `process no longer exists` or `NVML Shared Library Not Found` no longer displayed.
4147

42-
## v0.11.4
48+
## [v0.11.4](https://github.com/simvue-io/client/releases/tag/v0.11.4) - 2023-03-13
4349

4450
* (Bug fix) Ensure `simvue_sender` can be run when installed from PyPI.
4551
* (Bug fix) Runs created in `offline` mode using a context manager weren't automatically closed.
4652

47-
## v0.11.3
53+
## [v0.11.3](https://github.com/simvue-io/client/releases/tag/v0.11.3) - 2023-03-07
4854

4955
* Added logging messages for debugging when debug level set to `debug`.
5056

51-
## v0.11.2
52-
57+
## [v0.11.2](https://github.com/simvue-io/client/releases/tag/v0.11.2) - 2023-03-06
5358
* Raise exceptions in `Client` class methods if run does not exist or artifact does not exist.
5459
* (Bug fix) `list_artifacts` optional category restriction now works.
5560

56-
## v0.11.1
61+
## [v0.11.1](https://github.com/simvue-io/client/releases/tag/v0.11.1) - 2023-03-05
5762

5863
* Support different runs having different metadata in `get_runs` dataframe output.
5964
* (Bug fix) Error message when creating a duplicate run is now more clear.
6065
* (Bug fix) Correction to stopping the worker thread in situations where the run never started.
6166

62-
## v0.11.0
67+
## [v0.11.0](https://github.com/simvue-io/client/releases/tag/v0.11.0) - 2023-03-04
6368

6469
* Support optional dataframe output from `get_runs`.
6570

66-
## v0.10.1
71+
## [v0.10.1](https://github.com/simvue-io/client/releases/tag/v0.10.1) - 2023-03-03
6772

6873
* The worker process now no longer gives a long delay when a run has finished (now at most ~1 second).
6974
* The worker process ends when the `Run()` context ends or `close` is called, rather than only when the main process exits.
7075

71-
## v0.10.0
76+
## [v0.10.0](https://github.com/simvue-io/client/releases/tag/v0.10.0) - 2023-02-07
7277

7378
* The `client` class can now be used to retrieve runs.
7479

75-
## v0.9.1
80+
## [v0.9.1](https://github.com/simvue-io/client/releases/tag/v0.9.1) - 2023-01-25
7681

7782
* (Bug fix) Retries in POST/PUTs to REST APIs didn't happen.
7883
* Warn users if `allow_pickle=True` is required.
7984

80-
## v0.9.0
85+
## [v0.9.0](https://github.com/simvue-io/client/releases/tag/v0.9.0) - 2023-01-25
8186

8287
* Set status to `failed` or `terminated` if the context manager is used and there is an exception.
8388

84-
## v0.8.0
89+
## [v0.8.0](https://github.com/simvue-io/client/releases/tag/v0.8.0) - 2023-01-23
8590

8691
* Support NumPy arrays, PyTorch tensors, Matplotlib and Plotly plots and picklable Python objects as artifacts.
8792
* (Bug fix) Events in offline mode didn't work.
8893

89-
## v0.7.2
94+
## [v0.7.2](https://github.com/simvue-io/client/releases/tag/v0.7.2) - 2023-01-08
9095

9196
* Pydantic model is used for input validation.
9297
* Support NaN, -inf and inf in metadata and metrics.
9398

94-
## v0.7.0
99+
## [v0.7.0](https://github.com/simvue-io/client/releases/tag/v0.7.0) - 2022-12-05
95100

96101
* Collect CPU, GPU and memory resource metrics.
97102
* Automatically delete temporary files used in offline mode once runs have entered a terminal state.
98103
* Warn users if their access token has expired.
99104
* Remove dependency on the randomname module, instead handle name generation server side.
100105

101-
## v0.6.0
106+
## [v0.6.0](https://github.com/simvue-io/client/releases/tag/v0.6.0) - 2022-11-07
102107

103108
* `offline` and `disabled` options replaced with single `mode` flag.
104109

105-
## v0.5.0
110+
## [v0.5.0](https://github.com/simvue-io/client/releases/tag/v0.5.0) - 2022-11-03
106111

107112
* Added option to disable all monitoring.
108113

109-
## v0.4.0
114+
## [v0.4.0](https://github.com/simvue-io/client/releases/tag/v0.4.0) - 2022-11-03
110115

111116
* Offline mode added, enabling tracking of simulations running on worker nodes without outgoing network access.
112117
* Argument to `init` enabling runs to be left in the `created` state changed from `status="created"` to `running=True`.
113118
* Improvements to error handling.
114119

115-
## v0.3.0
120+
## [v0.3.0](https://github.com/simvue-io/client/releases/tag/v0.3.0) - 2022-10-31
116121

117122
* Update `add_alert` method to support either metrics or events based alerts.
118123

119-
## v0.2.0
124+
## [v0.2.0](https://github.com/simvue-io/client/releases/tag/v0.2.0) - 2022-10-26
120125

121126
* The previous `Simvue` class has been split into `Run` and `Client`. When creating a run use the new `Run` class rather than `Simvue`.
122127

123-
## v0.1.0
128+
## [v0.1.0](https://github.com/simvue-io/client/releases/tag/v0.1.0) - 2022-10-25
124129

125130
* First release.

simvue/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def callback_function(status_code: int, std_out: str, std_err: str) -> None:
156156
_command: typing.List[str] = []
157157

158158
if executable:
159-
_command += [executable]
159+
_command += [f"{executable}"]
160160
else:
161161
_command += [_pos_args[0]]
162162
_pos_args.pop(0)

0 commit comments

Comments
 (0)