Skip to content

Commit

Permalink
prepared for clone repo
Browse files Browse the repository at this point in the history
  • Loading branch information
luissian committed Oct 8, 2024
1 parent ca416cf commit 2f8304a
Show file tree
Hide file tree
Showing 6 changed files with 750 additions and 22 deletions.
2 changes: 1 addition & 1 deletion core/utils/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def get_all_sample_information(sample_id, join_values=False):
.last()
.get_param_value()
)
except core.models.MoleculeParameterValue.DoesNotExist:
except (core.models.MoleculeParameterValue.DoesNotExist, AttributeError):
# if the parameter was not set at the time the molecule was handeled
mol_param_value.append("")

Expand Down
23 changes: 23 additions & 0 deletions wetlab/class_views/handling_fragmentation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from django.shortcuts import render
from django.views import View
import core.models
import core.core_config
import core.utils.samples

class HandlingFragmentation(View):
template_name = "wetlab/hamdling_fragmentation.html"
package = __package__.split(".")[0]

def get(self, request, *args, **kwargs):
# collect the data to be shown in the form
return render(request, self.template_name, {"fragmentation_data": self.get_fragmentation_data})

def post(self, request, *args, **kwargs):


pass


def get_fragmentation_data(self):
# get the data to be shown in the form
pass
42 changes: 22 additions & 20 deletions wetlab/templates/wetlab/display_sample.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,26 +225,28 @@ <h3 class="text-center">Sample information for {{sample_information.sample_name}
</div>
</div>
{% if lib_param_heading is not None %}
<div class="col">
<div class="card ">
<div class="card-header"><h4>Quality Parameter Library Preparation Information</h4></div>
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
{% for lib_par_head in lib_param_heading %}
<th>{{ lib_par_head }} </th>
{%endfor%}
</tr>
</thead>
<tbody>
<tr>
{% for value in lib_param_values %}
<td>{{ value }} </td>
{%endfor%}
</tr>
</tbody>
</table>
<div class="row horizontal-scroll">
<div class="col">
<div class="card ">
<div class="card-header"><h4>Quality Parameter Library Preparation Information</h4></div>
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
{% for lib_par_head in lib_param_heading %}
<th>{{ lib_par_head }} </th>
{%endfor%}
</tr>
</thead>
<tbody>
<tr>
{% for value in lib_param_values %}
<td>{{ value }} </td>
{%endfor%}
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 2f8304a

Please sign in to comment.