Skip to content

Commit

Permalink
Merge pull request #266 from JoQCcoz/new_selectors
Browse files Browse the repository at this point in the history
fix error in export_grid command
  • Loading branch information
JoQCcoz authored May 9, 2024
2 parents a23b94c + 7e3ae57 commit 4af5800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Smartscope/core/main_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ def get_atlas_to_search_offset(detector_name,maximum=0):
def export_grid(grid_id, export_to=''):
from Smartscope.core.models import AutoloaderGrid
from Smartscope.core.utils.export_import import export_grid
grid = AutoloaderGrid.objects.get(grid_id=grid_id)
if export_to == '':
export_to = os.path.join(grid.directory, 'export.yaml')
print(f'Export path not specified. Exporting to default loacation: {export_to}')
grid = AutoloaderGrid.objects.get(grid_id=grid_id)
export_grid(grid, export_to=export_to)
print('Done.')

Expand Down

0 comments on commit 4af5800

Please sign in to comment.