Skip to content

Corrupted load of Dataset saved as compressed SDS with bands #288

@OrestZborowski-SIG

Description

@OrestZborowski-SIG

The code

import riptable as rt
import os

cur_dir = os.path.dirname(__file__)
temp_dir = os.path.join(cur_dir, 'temp')

source = rt.Dataset({'A': rt.Cat([b'a.1' for i in range(25)] + [b'a.4'])})
print(f"src: {source}")

sds_path = os.path.join(temp_dir, 'temp.sds')
rt.save_sds(sds_path, source, compress=True, overwrite=True, bandsize=10000)
sds = rt.load_sds(sds_path)
print(f"sds: {sds}")

results in

src:  #   A  
--   ---     
 0   a.1     
 1   a.1     
 2   a.1     
 3   a.1     
 4   a.1     
 5   a.1     
 6   a.1     
 7   a.1     
 8   a.1     
 9   a.1     
10   a.1     
11   a.1     
12   a.1     
13   a.1     
14   a.1     
15   a.1     
16   a.1
17   a.1
18   a.1
19   a.1
20   a.1
21   a.1
22   a.1
23   a.1
24   a.1
25   a.4
sds:  #   A       
--   --------
 0   !<18>
 1   Filtered
 2   Filtered
 3   Filtered
 4   Filtered
 5   Filtered
 6   Filtered
 7   Filtered
 8   !<40>
 9   !<-75>
10   !<47>
11   !<-3>
12   !<32>
13   !<26>
14   !<77>
15   Filtered
16   Filtered
17   !<24>
18   a.1
19   a.1
20   a.4
21   a.1
22   Filtered
23   !<53>
24   !<-64>
25   a.4

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions