Skip to content

Commit

Permalink
refactor: fixed spotMAX issues url in setup tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ElpadoCan committed Aug 4, 2023
1 parent 44f4db5 commit 0a0ed1c
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions cellacdc/_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,25 @@ def _install_tables(parent_software='Cell-ACDC'):
try:
import tables
except Exception as e:
if parent_software == 'Cell-ACDC':
issues_url = 'https://github.com/SchmollerLab/Cell_ACDC/issues'
note_txt = (
'If the installation fails, you can still use Cell-ACDC, but we '
'highly recommend you report the issue (see link below) and we '
'will be very happy to help. Thank you for your patience!'

)
else:
issues_url = 'https://github.com/SchmollerLab/Cell_ACDC/issues'
note_txt = (
'If the installation fails, report the issue (see link below) and we '
'will be very happy to help. Thank you for your patience!'
)
while True:
txt = (
f'{parent_software} needs to install a library called `tables`.\n\n'
'If the installation fails, you can still use Cell-ACDC, but we '
'highly recommend you report the issue (see link below) and we '
'will be very happy to help. Thank you for your patience!\n\n'
'Report issue here: https://github.com/SchmollerLab/Cell_ACDC/issues'
'\n'
f'{note_txt}\n\n'
f'Report issue here: {issues_url}\n'
)
print('-'*60)
print(txt)
Expand Down Expand Up @@ -51,7 +62,7 @@ def _install_tables(parent_software='Cell-ACDC'):
log_func(
f'{msg_type}: Installation of `tables` failed. '
'Please report the issue here (**including the error message above**): '
'https://github.com/SchmollerLab/Cell_ACDC/issues'
f'{issues_url}'
)
print('^'*60)
finally:
Expand Down

0 comments on commit 0a0ed1c

Please sign in to comment.