• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vanvalenlab / deepcell-label / 6472250430

10 Oct 2023 04:38PM UTC coverage: 50.942% (-0.4%) from 51.312%
6472250430

Pull #526

github

web-flow
Merge 181d75632 into 84d2bf2ac
Pull Request #526: MAINT: Pin werkzeug for flask v2 compatibility.

470 of 1239 branches covered (0.0%)

Branch coverage included in aggregate %.

2559 of 4707 relevant lines covered (54.37%)

288.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.54
/frontend/src/Load/ExampleFileSelect.js
1
import SendIcon from '@mui/icons-material/Send';
2
import { Box, Button, LinearProgress } from '@mui/material';
3
import Select from '@mui/material/Select';
4
import { useSelector } from '@xstate/react';
5
import React from 'react';
6

7
const exampleFiles = [
18✔
8
  {
9
    value: 0,
10
    path: 'https://deepcell-label-examples.s3.us-east-2.amazonaws.com/examples/mesmer_with_errors.zip',
11
    name: '2D tissue segmentation',
12
  },
13
  {
14
    value: 1,
15
    path: 'https://deepcell-label-examples.s3.us-east-2.amazonaws.com/examples/3D_organoid.zip',
16
    name: '3D organoid segmentation',
17
  },
18
  {
19
    value: 2,
20
    path: 'https://deepcell-label-examples.s3.us-east-2.amazonaws.com/examples/corrected_timelapse.zip',
21
    name: 'corrected tracking timelapse',
22
  },
23
  {
24
    value: 3,
25
    path: 'https://deepcell-label-examples.s3.us-east-2.amazonaws.com/examples/uncorrected_timelapse.zip',
26
    name: 'uncorrected tracking timelapse',
27
  },
28
];
29

30
function ExampleFileSelect({ loadService }) {
31
  const file = useSelector(loadService, (state) => state.context.exampleFile);
7✔
32
  const loading = useSelector(loadService, (state) => state.matches('submittingExample'));
7✔
33

34
  return (
4✔
35
    <Box
36
      sx={{
37
        display: 'flex',
38
        flexDirection: 'column',
39
        justifyContent: 'center',
40
        alignItems: 'center',
41
      }}
42
    >
43
      <Select
44
        sx={{ m: 3, p: 1 }}
45
        native
46
        value={file ? file.path : false}
4!
47
        onChange={(e) => loadService.send({ type: 'SET_EXAMPLE_FILE', file: e.target.value })}
×
48
        disabled={loading}
49
      >
50
        <option disabled value={false} style={{ display: 'none' }}>
51
          Or select an example file and press Submit
52
        </option>
53
        {exampleFiles.map((file, i) => (
54
          <option key={file.path} value={file.path}>
16✔
55
            {file.name}
56
          </option>
57
        ))}
58
      </Select>
59
      <Button
60
        id='submitExample'
61
        sx={{ width: '100%' }}
62
        variant='contained'
63
        color='primary'
64
        endIcon={<SendIcon />}
65
        onClick={() => loadService.send({ type: 'SUBMIT_EXAMPLE' })}
×
66
        disabled={!file || loading}
4!
67
      >
68
        Submit
69
      </Button>
70
      {loading && <LinearProgress sx={{ m: 1, width: '100%' }} />}
4!
71
    </Box>
72
  );
73
}
74

75
export default ExampleFileSelect;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc