-
Notifications
You must be signed in to change notification settings - Fork 8
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
TypeError #267
Comments
Hi @itachi-gf, you can do this two ways (sorry, the docs should be updated...):
|
Hello, I want to use this to simulate RFI for creating a training set for deep learning. Which part should I refer to? |
Hi @itachi-gf, sorry for the slow response. An alternative to @steven-murray's suggestion is to do the following:
Just like Steven said, you need to provide the baseline vector, not just the length, so that the simulator can figure out the appropriate fringe-rate filter to use. Regarding simulating RFI, you can use the tools in the Hope this helps! |
Hi,@r-pascua ,Thank you for your response! I intend to create a model capable of detecting RFI, such as a UNet. In this regard, I could use some guidance and suggestions. Could you please let me know how I should get started? |
ValueError Traceback (most recent call last) File ~/rfi_code/hera_sim/hera_sim/foregrounds.py:134, in DiffuseForeground.call(self, lsts, freqs, bl_vec, **kwargs) ValueError: A beam area array or interpolation object is required to use this function. |
Since you're using the sky temperature model appropriate for the phase I instrument, I'd like to suggest that you instead do the following:
Regarding your question about RFI, I suppose the tools available in |
Tsky_mdl = noise.HERA_Tsky_mdl['xx']
vis_fg_diffuse = foregrounds.diffuse_foreground(lsts, fqs, bl_len_ns, Tsky_mdl)
TypeError Traceback (most recent call last)
Cell In[14], line 2
1 Tsky_mdl = noise.HERA_Tsky_mdl['xx']
----> 2 vis_fg_diffuse = foregrounds.diffuse_foreground(lsts, fqs, bl_len_ns, Tsky_mdl)
TypeError: DiffuseForeground.call() takes 4 positional arguments but 5 were given
Following the documentation's instructions, I encountered an issue at this point. Could you please advise on how to resolve it? My system is Ubuntu 22.04, and the Python version is 3.11
The text was updated successfully, but these errors were encountered: