Skip to content

Commit

Permalink
style: fix line too long; use string append
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Mar 19, 2024
1 parent 23b70f7 commit 414ba67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_sink.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ def testImageCopySmall(file_type, tmp_path):
def testImageCopySmallMultiband(file_type, tmp_path):
output_file = tmp_path / f'test.{file_type}'
sink = large_image_source_zarr.new()
bands = 'red=400-12000,green=0-65535,blue=800-4000'
bands += ',ir1=200-24000,ir2=200-22000,gray=100-10000,other=0-65535'

This comment has been minimized.

Copy link
@manthey

manthey Mar 19, 2024

Member

I prefer to do

bands = (
    'red=400-12000,green=0-65535,blue=800-4000,'
    'ir1=200-24000,ir2=200-22000,gray=100-10000,other=0-65535')

rather than explicit concatenation.

This comment has been minimized.

Copy link
@annehaley

annehaley Mar 20, 2024

Author Collaborator

Ok, changed in f35d06e

source = large_image_source_test.TestTileSource(
fractal=True,
tileWidth=128,
tileHeight=128,
sizeX=512,
sizeY=1024,
frames='c=2,z=3',
bands='red=400-12000,green=0-65535,blue=800-4000,ir1=200-24000,ir2=200-22000,gray=100-10000,other=0-65535',
bands=bands,
)
copyFromSource(source, sink)

Expand Down

0 comments on commit 414ba67

Please sign in to comment.