mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 17:51:13 +08:00
Update the first time data generator to ignore sample names.
This commit is contained in:
parent
83bb89fdf5
commit
12dd9c9b5c
1 changed files with 6 additions and 9 deletions
|
@ -555,11 +555,8 @@ module FirstTimeDataGenerator
|
||||||
user: user,
|
user: user,
|
||||||
created_at: generate_random_time(my_modules[1].created_at, 4.days)
|
created_at: generate_random_time(my_modules[1].created_at, 4.days)
|
||||||
)
|
)
|
||||||
temp_text = "There are many biological replicates we harvested " \
|
temp_text = 'There are many biological replicates we harvested ' \
|
||||||
"for each type of sample (code-names):\n\n"
|
'for each type of sample.'
|
||||||
# samples_to_assign.each do |s|
|
|
||||||
# temp_text << "* #{s.name}\n\n"
|
|
||||||
# end
|
|
||||||
temp_result.result_text = ResultText.new(
|
temp_result.result_text = ResultText.new(
|
||||||
text: temp_text
|
text: temp_text
|
||||||
)
|
)
|
||||||
|
@ -1007,10 +1004,10 @@ module FirstTimeDataGenerator
|
||||||
created_by: user,
|
created_by: user,
|
||||||
team: team,
|
team: team,
|
||||||
contents: tab_content['module6']['distribution'] % {
|
contents: tab_content['module6']['distribution'] % {
|
||||||
sample0: 'Sample 0', # samples_to_assign[0].name,
|
sample0: 'Sample 0',
|
||||||
sample1: 'Sample 1', # samples_to_assign[1].name,
|
sample1: 'Sample 1',
|
||||||
sample2: 'Sample 2', # samples_to_assign[2].name,
|
sample2: 'Sample 2',
|
||||||
sample3: 'Sample 3' # samples_to_assign[3].name
|
sample3: 'Sample 3'
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
temp_result.save
|
temp_result.save
|
||||||
|
|
Loading…
Reference in a new issue