Skip to content

Fitting test (with static input and output)#216

Draft
MichaelClerx wants to merge 3 commits intomasterfrom
215-fitting
Draft

Fitting test (with static input and output)#216
MichaelClerx wants to merge 3 commits intomasterfrom
215-fitting

Conversation

@MichaelClerx
Copy link
Copy Markdown
Contributor

See #215

@MichaelClerx MichaelClerx mentioned this pull request Oct 27, 2020
6 tasks
@MichaelClerx MichaelClerx reopened this Oct 27, 2020
@MichaelClerx MichaelClerx force-pushed the 215-fitting branch 2 times, most recently from f30f912 to 90d16d5 Compare October 28, 2020 12:57
Copy link
Copy Markdown
Contributor

@jonc125 jonc125 left a comment

Choose a reason for hiding this comment

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

Is test/models/beattie-2017-ikr.csv really a model? Would it be better in test/input?

Copy link
Copy Markdown
Contributor

@jonc125 jonc125 left a comment

Choose a reason for hiding this comment

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

The suggested model loading changes look along sensible lines to me. Which would let the spec find parameters between prepare and compile calls. We'll still need to add a hook into the compilation process to ensure that identified parameters are exposed for modification in the generated pyx code.

Comment thread test/test_fitting.py

Note that this method is called _before_ the model is manipulated by the protocol, and so

OR IS IT!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, I think I'd do it afterwards.

Comment thread fc/protocol.py Outdated
Comment thread fc/protocol.py Outdated
Comment thread fc/protocol.py
Comment thread fc/protocol.py Outdated
Comment thread fc/protocol.py
if result.returncode != 0:
raise ProtocolError('Failed to generate executable model code; see output above for details')

# Create an instance of the model
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread fc/protocol.py
MichaelClerx and others added 3 commits January 22, 2021 12:52
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.

2 participants