-
Notifications
You must be signed in to change notification settings - Fork 136
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
Switch to logging #623
Open
lakesare
wants to merge
17
commits into
suny-downstate-medical-center:development
Choose a base branch
from
lakesare:switch_to_logging
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Switch to logging #623
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a2f6d90
Change all print statements to logger statements
lakesare c40a6ef
Get rid of the sim.cfg.verbose option
lakesare 917a86d
Merge branch 'master' of https://github.com/lakesare/netpyne into swi…
07a1c33
Merge conflicts
lakesare 8e2b385
Remove all "from __future__ import print_function"
lakesare 42bf86f
Add a comment about pprint
lakesare 3e6d76b
Merge branch 'Neurosim-lab:development' into switch_to_logging
lakesare 435c2e8
Typo fix
lakesare c89ba61
Stop propagating the netpyne logger
lakesare b3e6c14
Some necessary logger.info() => logger.timing()
lakesare cd869f6
How about we always keep track of timing?
lakesare 2541f00
Fix a typo , => +
lakesare 02f6544
Merge
lakesare dca1cf4
Get rid of logger.timing
lakesare 6e95444
Convert new print()s to logger.info()s
lakesare 94a985b
Fixes after review
lakesare d17bd3f
Revert "How about we always keep track of timing?"
lakesare File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@salvadord / @joewgraham, from the PR description:
This change made the code like
logger.timing('\nTotal time = %0.2f s' % sim.timingData['totalTime'])
fail when we havesim.cfg.timing
set toFalse
.We can either always track time (this is what this commit does, though we'd have to remove
hasattr(sim.cfg, 'timing')
too and do a couple of other things - I stopped in the middle here to ask for your opinion), or I can revert all timing statements toif sim.cfg.timing: ...log stuff...
.However - have we considered using a higher order function, say in this fashion https://stackoverflow.com/a/15136422/3192470?
Then we'd have it all in a single place:
(Instead of https://github.com/Neurosim-lab/netpyne/blob/development/netpyne/network/modify.py)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's looking impressive, but I think we should discuss details at the dev meeting tomorrow. I've added notes to the agenda.