Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
plant99 committed Jul 26, 2020
1 parent e9e0066 commit 1220d05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions felicette/sat_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ def process_landsat_rgb(id, bands):
# display generated image
display_file(paths["output_path_jpeg"])


def process_landsat_data(id, bands):

if bands == [2, 3, 4] or bands == [2, 3, 4, 8]:
Expand Down
9 changes: 5 additions & 4 deletions felicette/utils/sys_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ def exit_cli(message):
rprint("%s" % message)
sys.exit(0)


def display_file(file_name):
"""
Open given file with default user program.
"""
if sys.platform.startswith('linux'):
os.system('xdg-open %s' % file_name)
if sys.platform.startswith("linux"):
os.system("xdg-open %s" % file_name)

elif sys.platform.startswith('darwin'):
os.system('open %s' % file_name)
elif sys.platform.startswith("darwin"):
os.system("open %s" % file_name)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"rasterio==1.1.5",
"rio-color==1.0.0",
"pillow==7.2.0",
"opencv-python==4.3.0.36"
"opencv-python==4.3.0.36",
]

setup(
Expand All @@ -37,7 +37,7 @@
# As from http:https://pypi.python.org/pypi?%3Aaction=list_classifiers
# 'Development Status :: 1 - Planning',
# "Development Status :: 2 - Pre-Alpha",
'Development Status :: 3 - Alpha',
"Development Status :: 3 - Alpha",
# 'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
# 'Development Status :: 6 - Mature',
Expand Down

0 comments on commit 1220d05

Please sign in to comment.