-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'edge' into EXEC-504-provide-a-list-of-all-errors-encoun…
- Loading branch information
Showing
188 changed files
with
4,801 additions
and
1,045 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,17 @@ | ||
// import { GET, request } from '../request' | ||
import { GET, request } from '../request' | ||
|
||
// import type { ResponsePromise } from '../request' | ||
import type { ResponsePromise } from '../request' | ||
import type { HostConfig } from '../types' | ||
import type { UploadedCsvFilesResponse } from '../dataFiles/types' | ||
|
||
/** | ||
export function getCsvFiles( | ||
config: HostConfig, | ||
protocolId: string | ||
): ResponsePromise<UploadCsvFilesResponse> { | ||
return request<UploadCsvFilesResponse>( | ||
): ResponsePromise<UploadedCsvFilesResponse> { | ||
return request<UploadedCsvFilesResponse>( | ||
GET, | ||
`/protocols/${protocolId}/dataFiles`, | ||
null, | ||
config | ||
) | ||
} | ||
*/ | ||
|
||
// ToDo (kk:06/14/2024) remove when activate the above code | ||
export function getCsvFiles( | ||
config: HostConfig, | ||
protocolId: string | ||
): Promise<{ data: UploadedCsvFilesResponse }> { | ||
const stub = { | ||
data: { | ||
files: [ | ||
{ | ||
id: '1', | ||
createdAt: '2024-06-07T19:19:56.268029+00:00', | ||
name: 'rtp_mock_file1.csv', | ||
}, | ||
{ | ||
id: '2', | ||
createdAt: '2024-06-17T19:19:56.268029+00:00', | ||
name: 'rtp_mock_file2.csv', | ||
}, | ||
], | ||
}, | ||
} | ||
return Promise.resolve({ data: stub }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,31 @@ For more details about this release, please see the full [technical change log][ | |
|
||
[technical change log]: https://github.com/Opentrons/opentrons/releases | ||
|
||
## Internal Release 2.0.0-alpha.3 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. | ||
|
||
- [Opentrons changes since the latest stable release](https://github.com/Opentrons/opentrons/compare/[email protected]) | ||
- [Opentrons changes since the last internal release](https://github.com/Opentrons/opentrons/compare/[email protected]@2.0.0-alpha.3) | ||
- [Flex changes](https://github.com/Opentrons/oe-core/compare/[email protected]@2.0.0-alpha.3) | ||
- [Flex firmware changes](https://github.com/Opentrons/ot3-firmware/compare/[email protected]@v10) | ||
- [OT2 changes](https://github.com/Opentrons/buildroot/compare/[email protected]) | ||
|
||
## Internal Release 2.0.0-alpha.2 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. | ||
|
||
<https://github.com/Opentrons/opentrons/compare/[email protected]@2.0.0-alpha.2> | ||
|
||
## Internal Release 2.0.0-alpha.1 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. Usage may require a robot factory reset to restore robot stability. | ||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. | ||
|
||
<https://github.com/Opentrons/opentrons/compare/[email protected]@2.0.0-alpha.1> | ||
|
||
## Internal Release 2.0.0-alpha.0 | ||
|
||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. Usage may require a robot factory reset to restore robot stability. | ||
This internal release, pulled from the `edge` branch, contains features being developed for 8.0.0. It's for internal testing only. | ||
|
||
<https://github.com/Opentrons/opentrons/compare/[email protected]@2.0.0-alpha.0> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
api/src/opentrons/hardware_control/protocols/position_estimator.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from typing import Protocol, Sequence | ||
|
||
from ..types import Axis | ||
|
||
|
||
class PositionEstimator(Protocol): | ||
"""Position-control extensions for harwdare with encoders.""" | ||
|
||
async def update_axis_position_estimations(self, axes: Sequence[Axis]) -> None: | ||
"""Update the specified axes' position estimators from their encoders. | ||
This will allow these axes to make a non-home move even if they do not currently have | ||
a position estimation (unless there is no tracked poition from the encoders, as would be | ||
true immediately after boot). | ||
Axis encoders have less precision than their position estimators. Calling this function will | ||
cause absolute position drift. After this function is called, the axis should be homed before | ||
it is relied upon for accurate motion. | ||
This function updates only the requested axes. If other axes have bad position estimation, | ||
moves that require those axes or attempts to get the position of those axes will still fail. | ||
""" | ||
... | ||
|
||
def motor_status_ok(self, axis: Axis) -> bool: | ||
"""Return whether an axis' position estimator is healthy. | ||
The position estimator is healthy if the axis has | ||
1) been homed | ||
2) not suffered a loss-of-positioning (from a cancel or stall, for instance) since being homed | ||
If this function returns false, getting the position of this axis or asking it to move will fail. | ||
""" | ||
... | ||
|
||
def encoder_status_ok(self, axis: Axis) -> bool: | ||
"""Return whether an axis' position encoder tracking is healthy. | ||
The encoder status is healthy if the axis has been homed since booting up. | ||
If this function returns false, updating the estimator from the encoder will fail. | ||
""" | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.