Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying generator_brute.py #16

Closed
jychoi-hpc opened this issue Feb 8, 2020 · 7 comments · Fixed by #18
Closed

Error when trying generator_brute.py #16

jychoi-hpc opened this issue Feb 8, 2020 · 7 comments · Fixed by #18
Assignees

Comments

@jychoi-hpc
Copy link
Collaborator

Got the following error when tried generator_brute.py in the master branch:

python generator_brute.py --config config-mbp.json
Traceback (most recent call last):
  File "generator_brute.py", line 37, in <module>
    channels = expand_clist(cfg["channel_range"])
NameError: name 'expand_clist' is not defined

Where is expand_clist defined?

@rmchurch
Copy link
Collaborator

rmchurch commented Feb 9, 2020

It should be imported with the “from fluctana import *” call. The brute generator and receiver depend on the rmchurch fluctuana repo, I put it in my pythonpath env variable

@jychoi-hpc
Copy link
Collaborator Author

After adding the following line:

from fluctana.kstarecei import *

I passed the error but got anther one:

Rank: 0 , channel_range:  ['ECEI_L0101-2408'] , id =  0
Traceback (most recent call last):
  File "generator_brute.py", line 56, in <module>
    dobj = KstarEcei(shot=shotnr,data_path=datapath,clist=my_channel_range,verbose=False)
TypeError: __init__() got an unexpected keyword argument 'data_path'

It looks like fluctana/kstarecei.py is outdated. Can you update or point me where I can get the most recent one?

@rmchurch
Copy link
Collaborator

rmchurch commented Feb 9, 2020 via email

@rkube
Copy link
Owner

rkube commented Feb 10, 2020

I'll remove the fluctana code from this repo soon to avoid this confusion.

@jychoi-hpc
Copy link
Collaborator Author

Sorry. I didn't read that part. After checking out and exporting, it works now. I will try together with receiver_brute.py and post any question/issue.

@jychoi-hpc
Copy link
Collaborator Author

I got an error when running receiver_brute.py. It looks like there is no reader.get_attrs function. Do you have your implementation? I can make one but just want to avoid any conflict.

@rmchurch
Copy link
Collaborator

rmchurch commented Feb 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants