Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Wworkaround to avoid MiSeq runs moves to Error state when sequencer h…
Browse files Browse the repository at this point in the history
…as not finish the tasks

Allow to expor tables to excel.
Added scroll for long tables.
Merge branch 'release/v1.3.1'
  • Loading branch information
luissian committed May 14, 2019
2 parents 26d5435 + aba676c commit 743e4c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class RunningParametersAdmin(admin.ModelAdmin):
#import pdb; pdb.set_trace()

class RunProcessAdmin (admin.ModelAdmin):
list_display = ('runName','sequencerModel','sampleSheet','generatedat','run_date','runState', 'state','index_library','samples','centerRequestedBy','useSpaceImgMb','useSpaceFastaMb','useSpaceOtherMb')
list_display = ('runName','sequencerModel','sampleSheet','generatedat','run_date','runState','runError', 'state','index_library','samples','centerRequestedBy','useSpaceImgMb','useSpaceFastaMb','useSpaceOtherMb')

class ProjectsAdmin (admin.ModelAdmin):
list_display= ('runprocess_id','user_id','LibraryKit_id','projectName','libraryKit','baseSpaceFile','generatedat','project_run_date')
Expand Down
4 changes: 2 additions & 2 deletions utils/miseq_run_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def save_miseq_projects_found (projects_users , experiment_name, library_name):
library_kit = LibraryKit.objects.get(libraryName__exact = wetlab_config.DEFAULT_LIBRARY_KIT)
else:
string_message = 'The default library ' + wetlab_config.DEFAULT_LIBRARY_KIT + ' defined in config wetlab file does not exist'
logging_errors( string_message)
logging_errors( string_message, True, True)
logger.info('Using the first library kit defined in database')
library_kit = LibraryKit.objects.all().first()

Expand Down Expand Up @@ -698,7 +698,7 @@ def handle_miseq_run (conn, new_run, l_run_parameter, experiment_name) :
logger.debug ('End function for handling miSeq run with error')
raise ValueError ('Invalid sample sheet')
else:
run_state = RunProcess.objects.get(runName__exact = experiment_name).get_run_state()
run_state = RunProcess.objects.get(runName__exact = experiment_name).get_state()
string_message = 'Wrong state: ' + run_state +' when calling to handle_miseq_run function '
logging_errors(string_message, False, True)
logger.debug ('End function for handling miSeq run with error')
Expand Down

0 comments on commit 743e4c4

Please sign in to comment.