4import lindi
5from typing import cast
10 *, num_samples: int, num_channels: int, start_channel: int
11) -> np.ndarray:
14 Args:
15 num_samples: Number of samples to load
16 num_channels: Number of channels to load
17 start_channel: Starting channel index
19 Returns:
20 Array of shape (num_samples, num_channels) containing the loaded data
21 """
23 "This function is deprecated. Use datasets['real-000876-ch45']['create']() instead.",
24 DeprecationWarning,
30a2f07initialJeremy Magland 27 nwb_url = "https://api.dandiarchive.org/api/assets/7e1de06d-d478-40e2-9b64-9dd04eafaa4c/download/"
28 h5f = lindi.LindiH5pyFile.from_hdf5_file(nwb_url)
29 ds = h5f["/acquisition/ElectricalSeriesAP/data"]
30 assert isinstance(ds, lindi.LindiH5pyDataset)
70a7a71code formattingJeremy Magland 31 ret = ds[:num_samples, start_channel : start_channel + num_channels]
36 *, num_samples: int, num_channels: int, start_channel: int
37) -> np.ndarray:
40 Args:
41 num_samples: Number of samples to load
42 num_channels: Number of channels to load
43 start_channel: Starting channel index
45 Returns:
46 Array of shape (num_samples, num_channels) containing the loaded data
47 """
49 "This function is deprecated. Use datasets['real-000409-ch101']['create']() instead.",
50 DeprecationWarning,
30a2f07initialJeremy Magland 53 nwb_url = "https://api.dandiarchive.org/api/assets/c04f6b30-82bf-40e1-9210-34f0bcd8be24/download/"
54 h5f = lindi.LindiH5pyFile.from_hdf5_file(nwb_url)
70a7a71code formattingJeremy Magland 57 ret = ds[:num_samples, start_channel : start_channel + num_channels]
62 *, num_samples: int, num_channels: int, start_channel: int
63) -> np.ndarray:
66 Args:
67 num_samples: Number of samples to load
68 num_channels: Number of channels to load
69 start_channel: Starting channel index
71 Returns:
72 Array of shape (num_samples, num_channels) containing the loaded data
73 """
75 "This function is deprecated. Use datasets['real-001290-ch0']['create']() instead.",
76 DeprecationWarning,
30a2f07initialJeremy Magland 79 nwb_url = "https://api.dandiarchive.org/api/assets/78c99d23-da88-4ecd-9086-c488a126eac5/download/"
80 h5f = lindi.LindiH5pyFile.from_hdf5_file(nwb_url)
70a7a71code formattingJeremy Magland 83 ret = ds[:num_samples, start_channel : start_channel + num_channels]