Skip to content

Commit

Permalink
Ignore files created by test_storage_capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliddell committed Nov 27, 2023
1 parent 0920d5d commit b32fde5
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
36 changes: 18 additions & 18 deletions src/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ impl Default for capi::CameraProperties_camera_properties_shape_s {
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OffsetShapeCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
x: Property,

#[pyo3(get, set)]
#[pyo3(get)]
y: Property,
}

Expand Down Expand Up @@ -323,10 +323,10 @@ impl TryFrom<capi::CameraPropertyMetadata_camera_properties_metadata_shape_s> fo
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct DigitalLineCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
line_count: u8,

#[pyo3(get, set)]
#[pyo3(get)]
names: [String; 8],
}

Expand Down Expand Up @@ -365,10 +365,10 @@ impl TryFrom<capi::CameraPropertyMetadata_CameraPropertyMetadataDigitalLineMetad
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TriggerInputOutputCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
input: u8,

#[pyo3(get, set)]
#[pyo3(get)]
output: u8,
}

Expand Down Expand Up @@ -402,13 +402,13 @@ impl TryFrom<capi::CameraPropertyMetadata_CameraPropertiesTriggerMetadata_camera
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TriggerCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
acquisition_start: Py<TriggerInputOutputCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
exposure: Py<TriggerInputOutputCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
frame_start: Py<TriggerInputOutputCapabilities>,
}

Expand Down Expand Up @@ -462,31 +462,31 @@ impl TryFrom<capi::CameraPropertyMetadata_CameraPropertiesTriggerMetadata> for T
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CameraCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
exposure_time_us: Property,

#[pyo3(get, set)]
#[pyo3(get)]
line_interval_us: Property,

#[pyo3(get, set)]
#[pyo3(get)]
readout_direction: Property,

#[pyo3(get, set)]
#[pyo3(get)]
binning: Property,

#[pyo3(get, set)]
#[pyo3(get)]
offset: Py<OffsetShapeCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
shape: Py<OffsetShapeCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
supported_pixel_types: Vec<SampleType>,

#[pyo3(get, set)]
#[pyo3(get)]
digital_lines: Py<DigitalLineCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
triggers: Py<TriggerCapabilities>,
}

Expand Down
10 changes: 5 additions & 5 deletions src/capabilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ use crate::{
#[pyclass]
#[derive(Clone, Serialize, Deserialize)]
pub struct VideoStreamCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
camera: Py<CameraCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
storage: Py<StorageCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
max_frame_count: Py<Property>,

#[pyo3(get, set)]
#[pyo3(get)]
frame_average_count: Py<Property>,
}

Expand Down Expand Up @@ -62,7 +62,7 @@ impl TryFrom<capi::AcquirePropertyMetadata_aq_metadata_video_s> for VideoStreamC
#[pyclass]
#[derive(Clone, Serialize, Deserialize)]
pub struct Capabilities {
#[pyo3(get, set)]
#[pyo3(get)]
video: (Py<VideoStreamCapabilities>, Py<VideoStreamCapabilities>),
}

Expand Down
16 changes: 8 additions & 8 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,16 @@ impl Display for capi::String {
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChunkingShardingCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
is_supported: bool,

#[pyo3(get, set)]
#[pyo3(get)]
width: Py<Property>,

#[pyo3(get, set)]
#[pyo3(get)]
height: Py<Property>,

#[pyo3(get, set)]
#[pyo3(get)]
planes: Py<Property>,
}

Expand All @@ -396,7 +396,7 @@ impl Default for ChunkingShardingCapabilities {
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MultiscaleCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
is_supported: bool,
}

Expand All @@ -414,13 +414,13 @@ impl Default for MultiscaleCapabilities {
#[pyclass]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct StorageCapabilities {
#[pyo3(get, set)]
#[pyo3(get)]
chunk_dims_px: Py<ChunkingShardingCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
shard_dims_chunks: Py<ChunkingShardingCapabilities>,

#[pyo3(get, set)]
#[pyo3(get)]
multiscale: Py<MultiscaleCapabilities>,
}

Expand Down

0 comments on commit b32fde5

Please sign in to comment.