Reading multiple files and also one file containg limits to read other file's content upto

raman_kumar
Sat, 01 Jun 2024 16:41:43 +0000
Data

I have python code like:

from pyfiles import *
runname='./' #define start dir and file, uncomment below
sane = 1#0 for MAD98, 1 for SANE00
if sane == 1:
    inputfile=runname+'sane00.athinput'
    datafile='sane00.prim.01800.athdf'
    data=read_data(datafile,athinput=inputfile)
d = data.rho # density

Here
inputfile (click for more details)
is address of .txt configuration file that determines the limit to read data of sane00.prim.01800.athdf upto.

How to accomplish this in Julia? What is equivalent/alternative of python cis.read_data() function in Julia?
@mkitti

9 posts - 2 participants