Comments (4)
@dgursoy, This is what we talked about today. Any more thoughts?
from tike.
Looks good. One concern is we need a level of control for the print statements though. Otherwise, it won't be structured and we can't use them easily afterwards. For example, if I print a "Hello World" somewhere, I may not want to have it in the txt file.
from tike.
I guess you could use the __debug__
switch to save files instead. For example:
if __debug__:
np.save('./debug_data/', some_data)
But also, if the user doesn't use the -O
switch, it's better to dump a bunch of text to stdout
instead of making files on their disk?
I think __debug__
can only be set before runtime, so we can't protect the user by setting it for them in the code.
from tike.
Today I learned that the logger in a python library should be set to use the NullHandler
. This is how it is set up for TomoPy and it allows the library to inherit whatever logging environment the end user has set up.
https://docs.python.org/3/howto/logging.html#library-config
from tike.
Related Issues (20)
- Modify the ptychopy API to accept Python types such as arrays, dictionaries, integers, so that Tike can pass these parameters to ptychopy
- Use complete norm to compute common gradients in lstsq-grad method
- New ePIE, DM, MLs, API based on the new needed signature in ptychopy. HOT 2
- Allow arbitrary grid size for USFFT/Lamino Operators
- Dynamic addition / removal of probes and OPR modes
- Clean all references to num_batch from code
- sparse vs. compact group in LSQ-ML reconstruction HOT 12
- momentum acceleration for object and probe updates in the LSQ-ML reconstruction
- multislice ptychography
- Unifying communicator API
- Memory leak when restarting reconstruction?
- Check input diffraction patterns invalid values
- Tests for bad initial probe guess
- Probe power utility function
- Utility Function to convert ptycho data to low rez scanning transmission tomography
- num_batch default cannot be None
- Use statistical model selection methods to determine the best number of probes
- Use decorators to indicate which parts of API are experimental
- Expose the randomness API
- Assertion in compact cluster method is tripped when running on 8 GPUs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tike.