-
Notifications
You must be signed in to change notification settings - Fork 20
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
[REFACTOR] Move metainsuranceorg.py to a folder agents/ #108
base: master
Are you sure you want to change the base?
Conversation
Furthermore, maybe compute_profits_losses_from_cash.py, all the obsolete plotting code, visualization should be moved to a folder called analysis/. Without the folder organization, I have to deduce whether a file is an agent specification, a contract, a data analysis script, etc from scratch. |
I am not opposed to create folders to organize the code.
Which is your view on this Torsten?
…On Wed, 5 Dec 2018 at 01:53, rht ***@***.***> wrote:
Untested yet (pending Travis CI). Once tested I will move the rest of the
agents to agents/ as well.
------------------------------
You can view, comment on, or merge this pull request online at:
#108
Commit Summary
- [REFACTOR] Move metainsuranceorg.py to a folder agents/
File Changes
- *R* agents/metainsuranceorg.py
<https://github.com/INET-Complexity/isle/pull/108/files#diff-0> (0)
- *M* catbond.py
<https://github.com/INET-Complexity/isle/pull/108/files#diff-1> (2)
- *M* insurancefirm.py
<https://github.com/INET-Complexity/isle/pull/108/files#diff-2> (2)
- *M* reinsurancefirm.py
<https://github.com/INET-Complexity/isle/pull/108/files#diff-3> (2)
Patch Links:
- https://github.com/INET-Complexity/isle/pull/108.patch
- https://github.com/INET-Complexity/isle/pull/108.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#108>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKBvlEdQ5_IH5chrnRxqwENX5M45QNtgks5u1ycSgaJpZM4ZB2nQ>
.
|
Another concern here is that for the moment we cannot run models with subdirectories in the cloud that we are using. It will probably change soon. I will wait until then before merging this pull request. Thank you very much for the suggestion! |
Three comments on this:
Edit: I did not see that Juan had also just mentioned the sandman2 error connected to submodules. |
OK, I see. What are the import errors caused by the submodules? They could be solved (not sure by which one) with either relative import,
The agents do import from contracts and riskmodel, even so, the import structure is not circular, and it should be fine to put the agents into one folder. The contracts are self-contained, on the other hand. The riskmodel, distributionreinsurance group are also self-contained. I will investigate the quirks of sandman2 in the meantime. |
(I rebased to remove the merge conflict in the meantime) |
I added |
Rebased. |
Untested yet (pending Travis CI). Once tested I will move the rest of the agents to agents/ as well.