Open mooneyse opened 5 years ago
Hello
No, there isn't another script - I just found out by trial and error that "h5parm" did something useful, so used it. It's very plausible that it might have called losoto without my noticing though.
cheers Neal.
From: Sean Mooney [notifications@github.com] Sent: 14 January 2019 16:56 To: nealjackson/lofar-lb Cc: Subscribed Subject: [nealjackson/lofar-lb] No module named h5parm (#2)
When loop3B.py imports loop3_serviceB.py, I get
File "/data020/scratch/sean/lofar-lb/loop3_serviceB.py", line 6, in
from line 6 in the service script: https://github.com/nealjackson/lofar-lb/blob/449b1cf1f92da84db2e79977c8181bfdc9d78b50/loop3_serviceB.py#L6
So I had to remove the h5parm and import it from Losoto:
import losoto.h5parm as h5parm
Is this right or is the h5parm import some other script?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/nealjackson/lofar-lb/issues/2, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AI-z58Si_l7cqc7_6ZJywyeJpX4z9Ag3ks5vDLbIgaJpZM4Z-5kv.
Ah OK grand. To get it to work, I had to change the line above, and also change this:
to this:
fo.write ('import losoto.h5parm as h5parm,os,pickle\n')
Losoto is being used in this script anyway, when openSoltab
is being called.
When
loop3B.py
importsloop3_serviceB.py
, I getfrom line 6 in the service script: https://github.com/nealjackson/lofar-lb/blob/449b1cf1f92da84db2e79977c8181bfdc9d78b50/loop3_serviceB.py#L6
So I had to remove the
h5parm
and import it from Losoto:import losoto.h5parm as h5parm
Is this right or is the h5parm import some other script?