[arts-users] **SPAM** Re: catch exception in ARTS

2023-11-20 Thread Shaofei Wang
Hi, Oliver


Thank you very much for your reply!


Best regards,
Shaofei Wang


 Replied Message 
| From | Lemke, Oliver |
| Date | 11/20/2023 18:32 |
| To | Shaofei Wang |
| Cc | ARTS Users List |
| Subject | Re: [arts-users] catch exception in ARTS |
Hi Shaofei,

You can pass the robust=1 option to ybatchCalc to avoid termination on failed 
batch cases.

Cheers,
Oliver


On 20. Nov 2023, at 11:20, Shaofei Wang  wrote:

Hi, all

When i use ybatchCalc to simulate bt, some errors are triggered and then ARTS 
terminates.

I would like to ask if there is a way to skip the wrong simulation and move on 
to the next simulation.

I've tried converting .arts to.py and adding "try" and "except" in the .py file.

However, it seems that try and except must be placed in the ybatch_calc_agenda.
Therefore, i set allow_callbacks=True and ws.Touch(y, y_aux, jacobian). But it 
still can't work correctly.

Best regards,
Shaofei Wang







Re: [arts-users] catch exception in ARTS

2023-11-20 Thread Lemke, Oliver
Hi Shaofei,

You can pass the robust=1 option to ybatchCalc to avoid termination on failed 
batch cases.

Cheers,
Oliver


> On 20. Nov 2023, at 11:20, Shaofei Wang  wrote:
> 
> Hi, all 
> 
> When i use ybatchCalc to simulate bt, some errors are triggered and then ARTS 
> terminates.
> 
> I would like to ask if there is a way to skip the wrong simulation and move 
> on to the next simulation.
> 
> I've tried converting .arts to.py and adding "try" and "except" in the .py 
> file. 
> 
> However, it seems that try and except must be placed in the 
> ybatch_calc_agenda. 
> Therefore, i set allow_callbacks=True and ws.Touch(y, y_aux, jacobian). But 
> it still can't work correctly.
> 
> Best regards,
> Shaofei Wang







smime.p7s
Description: S/MIME cryptographic signature


[arts-users] **SPAM** catch exception in ARTS

2023-11-20 Thread Shaofei Wang
Hi, all


When i use ybatchCalc to simulate bt, some errors are triggered and then ARTS 
terminates.


I would like to ask if there is a way to skip the wrong simulation and move on 
to the next simulation.


I've tried converting .arts to.py and adding "try" and "except" in the .py 
file. 


However, it seems that try and except must be placed in the ybatch_calc_agenda. 
Therefore, i set allow_callbacks=True and ws.Touch(y, y_aux, jacobian). But it 
still can't work correctly.


Best regards,
Shaofei Wang