Skip to content

Commit

Permalink
temporarily disabling check for update
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 22, 2023
1 parent 97ab16f commit 63848dd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iblrig/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BaseSession(ABC):
def __init__(self, subject=None, task_parameter_file=None, file_hardware_settings=None,
hardware_settings=None, file_iblrig_settings=None, iblrig_settings=None,
one=None, interactive=True, projects=None, procedures=None, stub=None, subject_weight_grams=None,
append=False, log_level='INFO'):
append=False, wizard=False, log_level='INFO'):
"""
:param subject: The subject nickname. Required.
:param task_parameter_file: an optional path to the task_parameters.yaml file
Expand All @@ -77,7 +77,7 @@ def __init__(self, subject=None, task_parameter_file=None, file_hardware_setting
self.logger.info(f"Running iblrig {iblrig.__version__}, pybpod version {pybpodapi.__version__}")

# check for update
if interactive and not BaseSession.checked_for_update:
if not wizard and not BaseSession.checked_for_update:
BaseSession.checked_for_update = True
update_status, remote_version = check_for_updates()
if update_status is True:
Expand Down
6 changes: 4 additions & 2 deletions iblrig/gui/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ def check_dirty(self):
self.setDisabled(False)

def check_for_update(self):
self.setDisabled(False)
return
self.statusbar.showMessage("Checking for updates ...")
update_available, remote_version = check_for_updates()
if update_available:
Expand Down Expand Up @@ -260,7 +262,7 @@ def controls_for_extra_parameters(self):
if not any(set(x.option_strings).intersection(['--subject', '--user', '--projects',
'--log-level', '--procedures', '--weight',
'--help', '--append', '--no-interactive',
'--stub']))]
'--stub', '--wizard']))]
args_extra = sorted(self.model.get_task_extra_parser(self.model.task_name)._actions, key=lambda x: x.dest)
args = args_extra + args_general

Expand Down Expand Up @@ -405,7 +407,7 @@ def start_stop(self):
for key in self.task_arguments.keys():
cmd.extend([key, self.task_arguments[key]])
cmd.extend(['--weight', f'{weight}'])
# cmd.append('--no-interactive')
cmd.append('--wizard')
if self.uiCheckAppend.isChecked():
cmd.append('--append')
if self.running_task_process is None:
Expand Down
1 change: 1 addition & 0 deletions iblrig/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def _get_task_argument_parser(parents=None):
parser.add_argument('--stub', type=Path, help="Path to _ibl_experiment.description.yaml stub file.")
parser.add_argument('--log-level', default="INFO", help="verbosity of the console logger (default: INFO)",
choices=['NOTSET', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL'])
parser.add_argument('--wizard', dest='wizard', action='store_true')
return parser


Expand Down
3 changes: 3 additions & 0 deletions iblrig/version_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@


def check_for_updates():

return False, iblrig.__version__

log.info('Checking for updates ...')

try:
Expand Down

0 comments on commit 63848dd

Please sign in to comment.