Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing all integer parameter vector. #1634

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Conversation

stephanmg
Copy link
Collaborator

Evaluating an objective function with an all integer parameter vector throws the following error:

TypeError: in method 'SimulationParameters_parameters_set', argument 2 of type 'std::vector< amici::realtype,std::allocator< amici::realtype > > const &'

This PR mitigates the requirement for manual creation of a float vector of parameters.

Copy link
Member

@yannikschaelte yannikschaelte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable to me

@codecov
Copy link

codecov bot commented Jan 11, 2022

Codecov Report

Merging #1634 (12e9422) into develop (8743be3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1634   +/-   ##
========================================
  Coverage    78.91%   78.91%           
========================================
  Files           69       69           
  Lines        10711    10711           
========================================
  Hits          8453     8453           
  Misses        2258     2258           
Flag Coverage Δ
cpp 75.46% <ø> (ø)
petab 66.72% <100.00%> (ø)
python 68.27% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/amici/parameter_mapping.py 75.65% <100.00%> (ø)

@sonarcloud
Copy link

sonarcloud bot commented Jan 11, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@stephanmg stephanmg merged commit b73627c into develop Jan 11, 2022
@stephanmg stephanmg deleted the fix_all_int_parameters branch January 11, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants