rlib/log_metadata.rb
# log is json lines of metadata from the fits files we have uploaded
# @param metadata_log [String] filename of the log
# @param metadata [String] line to append to the log file
log is json lines of metadata from the fits files we have uploaded
log is json lines of metadata from the fits files we have uploaded
def log_metadata(metadata_log:, metadata:)
  File.open(metadata_log, 'a+') do |fd|
    fd.puts metadata.to_json
  end
end
def log_metadata ( metadata_log : , metadata : ) File . open ( metadata_log , 'a+' ) do | fd | fd . puts metadata . to_json end end
log is json lines of metadata from the fits files we have uploaded
log is json lines of metadata from the fits files we have uploaded
metadata_log
filename of the log
filename of the log
metadata
line to append to the log file
line to append to the log file