Skip to content

Commit b2a763b

Browse files
committed
indentation with spaces
1 parent 2155634 commit b2a763b

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/TBLogger.jl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function TBLogger(logdir="tensorboard_logs/run", overwrite=tb_increment;
6666
end
6767

6868
"""
69-
init_logdir(logdir, [overwrite=tb_increment])
69+
init_logdir(logdir, [overwrite=tb_increment])
7070
7171
Creates a folder at path `logdir`. If the folder already exhists the behaviour
7272
is determined by `overwrite`.
@@ -99,7 +99,7 @@ function init_logdir(logdir, overwrite=tb_increment)
9999
end
100100

101101
"""
102-
create_eventfile(logdir, [purge_step=nothing; time=time()]) -> IO
102+
create_eventfile(logdir, [purge_step=nothing; time=time()]) -> IO
103103
104104
Creates a protobuffer events file in the logdir and returns the IO buffer for
105105
writing to it. If `purge_step::Int` is passed then a special event is written
@@ -129,7 +129,7 @@ function create_eventfile(logdir, purge_step=nothing, time=time(); prepend="")
129129
ev_0 = Event(time, 0, OneOf(:file_version,"brain.Event:2"), source_metadata[])
130130
write_event(file, ev_0)
131131
end
132-
return fname, file
132+
return fname, file
133133
end
134134

135135
"""
@@ -193,7 +193,7 @@ Can be overidden by passing `log_step_increment=some_increment` when logging.
193193
set_step_increment!(lg::TBLogger, Δstep) = lg.step_increment = Δstep
194194

195195
"""
196-
increment_step!(lg, Δ_Step) -> Int
196+
increment_step!(lg, Δ_Step) -> Int
197197
198198
Increments the step counter in the logger by `Δ_Step` and returns the new value.
199199
"""
@@ -253,7 +253,7 @@ CoreLogging.min_enabled_level(lg::TBLogger) = lg.min_level
253253
CoreLogging.shouldlog(lg::TBLogger, level, _module, group, id) = true
254254

255255
function CoreLogging.handle_message(lg::TBLogger, level, message, _module, group,
256-
id, file, line; kwargs...)
256+
id, file, line; kwargs...)
257257
# Unpack the message
258258
summ = SummaryCollection()
259259
i_step = lg.step_increment # :log_step_increment default value
@@ -283,18 +283,18 @@ end
283283

284284
######################### Methods for pretty printing ##########################
285285
Base.show(io::IO, tbl::TBLogger) = begin
286-
str = "TBLogger(\"$(tbl.logdir)\"), min_level=$(tbl.min_level), "*
287-
"purge_step=$(tbl.global_step))"
286+
str = "TBLogger(\"$(tbl.logdir)\"), min_level=$(tbl.min_level), "*
287+
"purge_step=$(tbl.global_step))"
288288
Base.print(io, str)
289289
end
290290

291291
Base.show(io::IO, mime::MIME"text/plain", tbl::TBLogger) = begin
292-
str = """
293-
TBLogger:
294-
- Log level : $(tbl.min_level)
295-
- Current step : $(tbl.global_step)
296-
- Output : $(tbl.logdir)
297-
- open files : $(length(tbl.all_files))
298-
"""
292+
str = """
293+
TBLogger:
294+
- Log level : $(tbl.min_level)
295+
- Current step : $(tbl.global_step)
296+
- Output : $(tbl.logdir)
297+
- open files : $(length(tbl.all_files))
298+
"""
299299
Base.print(io, str)
300300
end

0 commit comments

Comments
 (0)