diff --git a/CHANGES.rst b/CHANGES.rst index 3fd979c86d..56b6a6167a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,8 @@ Cubeviz Imviz ^^^^^ +- Remove "From File.." option when running on an external server. [#3239] + Mosviz ^^^^^^ @@ -189,6 +191,17 @@ Other Changes and Additions - Bump required specutils version to 1.16. Moment 0 calculation is now in units of flux*dx (rather than flux) [#3184] +3.10.4 (unreleased) +=================== + +Bug Fixes +--------- + +Imviz +^^^^^ + +- Remove "From File.." option when running on an external server. [#3239] + 3.10.3 (2024-07-22) =================== diff --git a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py index e41d6f55a3..ce351e3d90 100644 --- a/jdaviz/configs/imviz/plugins/catalogs/catalogs.py +++ b/jdaviz/configs/imviz/plugins/catalogs/catalogs.py @@ -57,11 +57,13 @@ def user_api(self): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + cat_options = ['SDSS', 'Gaia'] + if not self.app.state.settings.get('server_is_remote', False): + cat_options.append('From File...') self.catalog = FileImportSelectPluginComponent(self, items='catalog_items', selected='catalog_selected', - manual_options=['SDSS', 'Gaia', - 'From File...']) + manual_options=cat_options) # set the custom file parser for importing catalogs self.catalog._file_parser = self._file_parser diff --git a/jdaviz/configs/imviz/plugins/footprints/footprints.py b/jdaviz/configs/imviz/plugins/footprints/footprints.py index 8e082ae60e..d27f46f8c2 100644 --- a/jdaviz/configs/imviz/plugins/footprints/footprints.py +++ b/jdaviz/configs/imviz/plugins/footprints/footprints.py @@ -118,7 +118,8 @@ def __init__(self, *args, **kwargs): preset_options = list(preset_regions._instruments.keys()) else: preset_options = ['None'] - preset_options.append('From File...') + if not self.app.state.settings.get('server_is_remote', False): + preset_options.append('From File...') self.preset = FileImportSelectPluginComponent(self, items='preset_items', selected='preset_selected',