Skip to content

Commit

Permalink
Change default compression to zlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
We-Gold committed Jul 31, 2024
1 parent 621c71b commit 839e424
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- v*.*.*
paths:
- documentation/**/*

env:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Expand Down
2 changes: 1 addition & 1 deletion python/ouroboros/helpers/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ class BackprojectOptions(CommonOptions):
False # Whether to make the backprojection binary (values of 0 or 1)
)
backprojection_compression: str = (
"zstd" # Compression type for the backprojected file
"zlib" # Compression type for the backprojected file
)
18 changes: 9 additions & 9 deletions src/renderer/src/interfaces/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ export class Entry {
this.options = options
}

setValue(value: CompoundValueType) {
setValue(value: CompoundValueType): void {
if (typeof value === 'object') return

if (typeof value !== typeof this.value) return

this.value = value
}

setValueFromEntry(entry: Entry | CompoundEntry) {
setValueFromEntry(entry: Entry | CompoundEntry): void {
if (entry instanceof Entry) this.setValue(entry.value)
}

toObject() {
toObject(): ValueType {
return this.value
}

Expand Down Expand Up @@ -74,7 +74,7 @@ export class CompoundEntry {
}
}

setValue(value: CompoundValueType) {
setValue(value: CompoundValueType): void {
if (typeof value !== 'object') return

for (const [name, val] of Object.entries(value)) {
Expand All @@ -84,7 +84,7 @@ export class CompoundEntry {
}
}

setValueFromEntry(entry: Entry | CompoundEntry) {
setValueFromEntry(entry: Entry | CompoundEntry): void {
if (entry instanceof Entry) return

for (const _entry of entry.entries) {
Expand All @@ -94,7 +94,7 @@ export class CompoundEntry {
}
}

toObject(includeSelf = false) {
toObject(includeSelf = false): CompoundValueType {
const result = {}

for (const entry of this.entries) {
Expand Down Expand Up @@ -125,7 +125,7 @@ export class CompoundEntry {
return this.schema
}

getEntries() {
getEntries(): (Entry | CompoundEntry)[] {
return this.entries
}

Expand Down Expand Up @@ -162,7 +162,7 @@ export class SliceOptionsFile extends CompoundEntry {
new Entry('flush_cache', 'Flush CloudVolume Cache', false, 'boolean'),
new Entry('connect_start_and_end', 'Connect Endpoints', false, 'boolean'),
new CompoundEntry('bounding_box_params', 'Bounding Box Parameters', [
new Entry('max_depth', 'Max Depth', 10, 'number'),
new Entry('max_depth', 'Max Depth', 12, 'number'),
new Entry('target_slices_per_box', 'Target Slices per Box', 128, 'number')
]),
new Entry('make_single_file', 'Output Single File', true, 'boolean'),
Expand All @@ -187,7 +187,7 @@ export class BackprojectOptionsFile extends CompoundEntry {
new Entry('connect_start_and_end', 'Connect Endpoints', false, 'boolean'),
new Entry('backproject_min_bounding_box', 'Output Min Bounding Box', true, 'boolean'),
new Entry('make_backprojection_binary', 'Binary Backprojection', false, 'boolean'),
new Entry('backprojection_compression', 'Backprojection Compression', 'zstd', 'string'),
new Entry('backprojection_compression', 'Backprojection Compression', 'zlib', 'string'),
new Entry('make_single_file', 'Output Single File', true, 'boolean'),
new Entry('max_ram_gb', 'Max RAM (GB) (0 = no limit)', 0, 'number')
])
Expand Down

0 comments on commit 839e424

Please sign in to comment.