Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 26e8acc

Browse files
authored
Remove ROS extention (#324)
1 parent bca334d commit 26e8acc

7 files changed

Lines changed: 0 additions & 461 deletions

File tree

sdc/_ros.cpp

Lines changed: 0 additions & 169 deletions
This file was deleted.

sdc/config.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@
4848
else:
4949
_has_pyarrow = True
5050

51-
try:
52-
from . import ros_cpp
53-
except ImportError:
54-
_has_ros = False
55-
else:
56-
_has_ros = True
57-
5851
try:
5952
from . import cv_wrapper
6053
except ImportError:

sdc/distributed.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -639,21 +639,6 @@ def f(connect_tp, dset_tp, col_id_tp, schema_arr_tp, start_tp, count_tp): # pra
639639
out += f_block.body[:-2]
640640
out[-1].target = assign.target
641641

642-
if (sdc.config._has_ros
643-
and fdef == ('read_ros_images_inner', 'sdc.ros')
644-
and self._is_1D_arr(rhs.args[0].name)):
645-
arr = rhs.args[0].name
646-
assert len(self._array_starts[arr]) == 4, "only 4D arrs in ros"
647-
start_var = self._array_starts[arr][0]
648-
count_var = self._array_counts[arr][0]
649-
rhs.args += [start_var, count_var]
650-
651-
def f(arr, bag, start, count): # pragma: no cover
652-
return sdc.ros.read_ros_images_inner_parallel(arr, bag,
653-
start, count)
654-
655-
return self._replace_func(f, rhs.args)
656-
657642
if (func_mod == 'sdc.hiframes.api' and func_name in (
658643
'to_arr_from_series', 'ts_series_to_arr_typ',
659644
'to_date_series_type', 'init_series')

sdc/distributed_analysis.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,6 @@ def _analyze_call(self, lhs, rhs, func_var, args, array_dists):
476476
if fdef == ('file_read', 'sdc.io.np_io'):
477477
return
478478

479-
if sdc.config._has_ros and fdef == ('read_ros_images_inner', 'sdc.ros'):
480-
return
481-
482479
if sdc.config._has_pyarrow and fdef == ('read_parquet', 'sdc.io.parquet_pio'):
483480
return
484481

sdc/hiframes/hiframes_untyped.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ def _run_call(self, assign, label):
432432
if fdef == ('to_numeric', 'pandas'):
433433
return self._handle_pd_to_numeric(assign, lhs, rhs)
434434

435-
if fdef == ('read_ros_images', 'sdc.ros'):
436-
return self._handle_ros(assign, lhs, rhs)
437-
438435
if isinstance(func_mod, ir.Var) and self._is_df_var(func_mod):
439436
return self._run_call_df(
440437
assign, lhs, rhs, func_mod, func_name, label)
@@ -1088,12 +1085,6 @@ def f(arr_list): # pragma: no cover
10881085
return sdc.hiframes.api.init_series(sdc.hiframes.api.concat(arr_list))
10891086
return self._replace_func(f, rhs.args)
10901087

1091-
def _handle_ros(self, assign, lhs, rhs):
1092-
if len(rhs.args) != 1: # pragma: no cover
1093-
raise ValueError("Invalid read_ros_images() arguments")
1094-
import sdc.ros
1095-
return sdc.ros._handle_read_images(lhs, rhs)
1096-
10971088
def _fix_df_arrays(self, items_list):
10981089
nodes = []
10991090
new_list = []

0 commit comments

Comments
 (0)