vuer-cli 0.0.4__py3-none-any.whl → 0.0.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ class Demcap:
55
55
  start_time: int = None # Start timestamp in nanoseconds
56
56
  end_time: int = None # End timestamp in nanoseconds
57
57
 
58
- def run(self) -> int:
58
+ def __call__(self) -> int:
59
59
  """Execute demcap command."""
60
60
  try:
61
61
  from .mcap_extractor import MCAPExtractor
@@ -117,19 +117,21 @@ class Demcap:
117
117
 
118
118
  def _print_summary(self, extractor, output_dir: Path):
119
119
  """Print summary of extracted data."""
120
- print(dedent(f"""
121
- {'=' * 80}
120
+ print(
121
+ dedent(f"""
122
+ {"=" * 80}
122
123
  EXTRACTION COMPLETE
123
- {'=' * 80}
124
+ {"=" * 80}
124
125
 
125
126
  Extracted data locations:
126
- RGB images: {output_dir / 'images'}
127
- Depth images: {output_dir / 'depth'}
128
- LiDAR scans: {output_dir / 'lidar'}
129
- IMU data: {output_dir / 'imu'}
130
- Transforms: {output_dir / 'transforms'}
131
- Videos: {output_dir / 'videos'}
132
- """).strip())
127
+ RGB images: {output_dir / "images"}
128
+ Depth images: {output_dir / "depth"}
129
+ LiDAR scans: {output_dir / "lidar"}
130
+ IMU data: {output_dir / "imu"}
131
+ Transforms: {output_dir / "transforms"}
132
+ Videos: {output_dir / "videos"}
133
+ """).strip()
134
+ )
133
135
 
134
136
  # Show camera intrinsics if available
135
137
  if extractor.camera_intrinsics:
@@ -159,9 +161,11 @@ class Demcap:
159
161
  if extractor.joint_states_data:
160
162
  print(f"\nJoint states data: {len(extractor.joint_states_data)} records")
161
163
 
162
- print(dedent(f"""
163
- {'=' * 80}
164
+ print(
165
+ dedent(f"""
166
+ {"=" * 80}
164
167
 
165
168
  All data saved to: {output_dir}
166
- {'=' * 80}
167
- """).strip())
169
+ {"=" * 80}
170
+ """).strip()
171
+ )