-
Notifications
You must be signed in to change notification settings - Fork 20
Suppress logging #18
Suppress logging #18
Conversation
|
||
# ### Read and assign time series to `System` using the `ts_pointers` struct | ||
add_time_series!(sys, ts_pointers) | ||
# ### Read and assign time series to `System` using these parameters. |
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.
@claytonpbarrows IMHO it is better to keep this simpler. If you do want to expose the intermediate step to users, I'll revert the change.
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.
I think the same, there are too many intermediate steps here for this to be a tutorial
to_json(sys, path) | ||
|
||
filesize(path) / 1000000 #MB | ||
filesize(path) / (1024 * 1024) #MiB |
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.
Tools like ls
usually provide these sizes in base 2, not base 10. 1 Mebibyte = 2^20 bytes
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.
Thanks, @daniel-thom this will make the examples much better. I will see if the same works for the docs too.
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.
This looks good. Thanks!
@@ -42,7 +42,9 @@ Pkg.status() | |||
using SIIPExamples; | |||
using PowerSystems; | |||
using D3TypeTrees; | |||
IS = PowerSystems.IS | |||
using Logging | |||
|
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.
can we add something like the following:
# PowerSystems provides some control over log messages, [this doc page](https://nrel-siip.github.io/PowerSystems.jl/stable/api/public/#logging) provides more information about how to configure the logger.
The main purpose of this PR is to suppress
Info
log messages from showing up in the notebook. I think I heard from you guys that you would prefer this behavior. I made the changes in a subset of notebooks. If you agree with the changes then I'll continue with the rest.I also replaced JSON2 with JSON3.