Skip to content

Commit

Permalink
Merge pull request #1886 from projectcypress/master
Browse files Browse the repository at this point in the history
Merge 7/29
  • Loading branch information
dczulada authored Jul 29, 2024
2 parents e2fa329 + 4c9a747 commit 16becaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ GEM
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.8)
strscan (>= 3.0.9)
rexml (3.3.2)
strscan
roar (1.1.1)
representable (~> 3.0)
roar-rails (1.1.0)
Expand Down
6 changes: 3 additions & 3 deletions contrib/upgrade_cypress_70.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ apt-get update
if [ $(dpkg-query -W -f='${Status}' cypress 2>/dev/null | grep -c "ok installed") -eq 1 ];
then
printf "${GREEN}---> Attempting to upgrade Cypress...${NC}\n"
apt-get -y --allow-change-held-packages install cypress cqm-execution-service cqm-execution-service-55
apt-get -y --allow-change-held-packages install cypress cqm-execution-service
cypress run rake db:migrate
systemctl restart cypress cqm-execution-service cqm-execution-service-55
systemctl restart cypress cqm-execution-service
cypress run rake tmp:cache:clear
cypress run rake db:migrate
systemctl restart cypress cqm-execution-service cqm-execution-service-55
systemctl restart cypress cqm-execution-service
cypress run rake tmp:cache:clear
else
printf "${RED}---> Cypress not found, continuing...${NC}\n"
Expand Down
4 changes: 2 additions & 2 deletions lib/cypress/expected_results_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def calculate_observation(observation_hash, measure, population_set_key)
@measure_result_hash[measure.hqmf_id][key]['observations'][population] = { method: 'MEDIAN', hqmf_id: observation.hqmf_id,
value: median_value }
when 'SUM'
@measure_result_hash[measure.hqmf_id][key]['observations'][population] = { value: sum(observation_map[:values].map(&:value)),
@measure_result_hash[measure.hqmf_id][key]['observations'][population] = { value: sum(observation_map[:values].map(&:value).compact),
method: 'SUM', hqmf_id: observation.hqmf_id }
when 'AVERAGE'
@measure_result_hash[measure.hqmf_id][key]['observations'][population] = { value: mean(observation_map[:values].map(&:value)),
@measure_result_hash[measure.hqmf_id][key]['observations'][population] = { value: mean(observation_map[:values].map(&:value).compact),
method: 'AVERAGE', hqmf_id: observation.hqmf_id }
end
end
Expand Down

0 comments on commit 16becaa

Please sign in to comment.