Skip to content
Closed
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
22 changes: 15 additions & 7 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { dirname, join } from "path";
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
Expand All @@ -14,13 +15,14 @@ const config: StorybookConfig = {
],

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'storybook-addon-pseudo-states',
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("storybook-addon-pseudo-states"),
'@chromatic-com/storybook'
],

framework: {
name: '@storybook/react-vite',
name: getAbsolutePath("@storybook/react-vite"),
options: {
builder: {
// Storybook would normally find the Vite config automatically.
Expand All @@ -32,9 +34,15 @@ const config: StorybookConfig = {
},
},

docs: {
autodocs: true,
},
docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript'
}
}

export default config

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
2 changes: 1 addition & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const customViewports = {
}

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
viewport: { viewports: customViewports },
options: {
storySort: {
Expand All @@ -93,3 +92,4 @@ export const decorators = [
</I18nextProvider>
),
]
export const tags = ['autodocs']
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}


requirements = {"robotType": "Flex", "apiLevel": "2.26"}
requirements = {"robotType": "Flex", "apiLevel": "2.27"}
"""
Slot A1: Tips 1000
Slot A2: Tips 1000
Expand Down Expand Up @@ -71,12 +71,13 @@ def add_parameters(parameters: protocol_api.ParameterContext) -> None:

def run(protocol: protocol_api.ProtocolContext) -> None:
"""Protocol Set Up."""
protocol.capture_image(filename="start_of_run")
heater_shaker_speed = protocol.params.heater_shaker_speed # type: ignore[attr-defined]
mount = protocol.params.pipette_mount # type: ignore[attr-defined]
deactivate_modules_bool = protocol.params.deactivate_modules # type: ignore[attr-defined]
probe_height_bool = protocol.params.probe_liquid_height # type: ignore[attr-defined]
meniscus_z = protocol.params.meniscus_z # type: ignore[attr-defined]
helpers.comment_protocol_version(protocol, "03")
helpers.comment_protocol_version(protocol, "04")
if not protocol.is_simulating():
slack_bot = helpers.set_up_slack()
slack_bot.send_run_started_message(metadata["protocolName"])
Expand Down Expand Up @@ -265,6 +266,7 @@ def mixing(well: Well, pip: InstrumentContext, mvol: float, reps: int = 8) -> No
dispensing at the top and 2 cycles of aspirating from middle,
dispensing at the bottom
"""
protocol.capture_image(filename="mixing")
center = well.top(5)
asp = well.bottom(z=1)
disp = well.top(-8)
Expand Down Expand Up @@ -295,6 +297,7 @@ def mixing(well: Well, pip: InstrumentContext, mvol: float, reps: int = 8) -> No
def lysis(vol: float, source: Well) -> None:
"""Lysis."""
protocol.comment("-----Beginning Lysis Steps-----")
protocol.capture_image(filename="lysis")
num_transfers = math.ceil(vol / 980)
tipcheck(m1000)
total_lysis_aspirated = 0.0
Expand Down Expand Up @@ -337,6 +340,8 @@ def bind(vol1: float, vol2: float) -> None:
plate.
"""
protocol.comment("-----Beginning Binding Steps-----")
protocol.capture_image(filename="binding_steps")

for i, well in enumerate(samples_m):
tipcheck(m1000)
num_trans = math.ceil(vol1 / 980)
Expand Down Expand Up @@ -439,6 +444,8 @@ def wash(vol: float, source: List[Well]) -> None:
"""Wash Steps."""
global whichwash # Defines which wash the protocol is on to log on the app
protocol.comment("-----Now starting Wash #" + str(whichwash) + "-----")
protocol.capture_image(filename="wash_step")

global wash_volume_tracker

num_trans = math.ceil(vol / 980.0)
Expand Down Expand Up @@ -487,6 +494,7 @@ def wash(vol: float, source: List[Well]) -> None:
remove_supernatant(vol)

def elute(vol: float) -> None:
protocol.capture_image(filename="elute_step")
tipcheck(m1000)
total_elution_vol = 0.0
for i, m in enumerate(samples_m):
Expand Down Expand Up @@ -564,7 +572,7 @@ def elute(vol: float) -> None:
wash(wash1_vol, all_washes)
wash(wash2_vol, all_washes)
wash(wash3_vol, all_washes)
h_s.set_and_wait_for_temperature(55)
h_s.set_target_temperature(55)
for beaddry in np.arange(drybeads, 0, -0.5):
protocol.delay(
minutes=0.5,
Expand All @@ -583,6 +591,7 @@ def elute(vol: float) -> None:
)
if deactivate_modules_bool:
helpers.deactivate_modules(protocol)
protocol.capture_image(filename="end_of_run")
if not protocol.is_simulating():
slack_bot.send_run_completed_message(metadata["protocolName"])
except Exception as e:
Expand Down
Loading
Loading