Commit 14c793f3 by Uddeepta Deka

final edits

parent 16de5cd2
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -142,7 +142,7 @@ ...@@ -142,7 +142,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6, "execution_count": 5,
"id": "c30757f1-b4bc-4bcf-833b-7d7ed650bd0e", "id": "c30757f1-b4bc-4bcf-833b-7d7ed650bd0e",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
...@@ -288,6 +288,150 @@ ...@@ -288,6 +288,150 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 6,
"id": "2935824b-e767-4763-b0e8-45e4ab20b559",
"metadata": {},
"outputs": [],
"source": [
"y_arr = np.linspace(0., 3., 100)\n",
"qeff_arr = [0.4]\n",
"\n",
"num_images = np.zeros((len(y_arr), len(qeff_arr)))\n",
"\n",
"for ii, y in enumerate(y_arr):\n",
" for jj, qeff in enumerate(qeff_arr):\n",
" lens = ChargedLens(y1=y, qeff=qeff)\n",
" ## using triangle mapping\n",
" # possible_images = np.array(find_images(lens, method='T')).T\n",
" # gtd1_im, gtd2_im = lens.gradTimeDelay(*possible_images.T)\n",
" # gtd_im = np.sqrt(gtd1_im**2 + gtd2_im**2)\n",
" # idxs = np.where(gtd_im < 1e-1)[0]\n",
" # x_image = possible_images[idxs]\n",
" # num_images[ii][jj] = len(x_image)\n",
" # num_images[ii][jj] = len(lens.imageLocations(mag_cut=True, gtd_cut=False, mag_tol=1e-6)[0])\n",
" num_images[ii][jj] = len(lens.img)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "0b896591-b871-4672-b4f3-06cbb4429c05",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0.],\n",
" [0.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.],\n",
" [2.]])"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": []
},
{
"cell_type": "code",
"execution_count": 8, "execution_count": 8,
"id": "4ec7d737-bfb6-4722-befc-3c026be9bd83", "id": "4ec7d737-bfb6-4722-befc-3c026be9bd83",
"metadata": {}, "metadata": {},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Universe = vanilla Universe = vanilla
Executable = /home1/uddeepta.deka/lensing/charged_lens_updated/scripts/lensed_waveform_exec.py Executable = /home1/uddeepta.deka/lensing/charged_lens_updated/scripts/lensed_waveform_exec.py
Arguments = Ml $(Ml_value) y $(y_value) q $(q_value) t_max 200 Arguments = Ml $(Ml_value) y $(y_value) q $(q_value) t_max 200 dect Aplus
Getenv = True Getenv = True
Output = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/outfiles/output_Ml$(Ml_value)_y$(y_value)_q$(q_value).out Output = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/outfiles/output_Ml$(Ml_value)_y$(y_value)_q$(q_value).out
Error = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/errors/error_Ml$(Ml_value)_y$(y_value)_q$(q_value).err Error = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/errors/error_Ml$(Ml_value)_y$(y_value)_q$(q_value).err
Log = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/logs/log_Ml$(Ml_value)_y$(y_value)_q$(q_value).log Log = /home1/uddeepta.deka/lensing/charged_lens_updated/data/lensed_waveform_data/logs/log_Ml$(Ml_value)_y$(y_value)_q$(q_value).log
notify_user = uddeepta.deka@icts.res.in notify_user = uddeepta.deka@icts.res.in
Notification = Never Notification = Never
requirements = (Machine != "node42.alice.icts.res.in") && (Machine != "node51.alice.icts.res.in") && (Machine != "node76.alice.icts.res.in") requirements = (Machine != "node18.alice.icts.res.in") && (Machine != "node43.alice.icts.res.in") && (Machine != "node50.alice.icts.res.in") && (Machine != "node63.alice.icts.res.in") && (Machine != "node72.alice.icts.res.in") && (Machine != "node76.alice.icts.res.in") && (Machine != "node82.alice.icts.res.in") && (Machine != "node94.alice.icts.res.in")
request_cpus = 4 max_idle = 100
request_memory = 1024 request_cpus = 1
request_memory = 2048
queue Ml_value y_value q_value from params.txt queue Ml_value y_value q_value from params_pos.txt
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment