warning Command
- warning(string)
This command is used to add a desired text to warning file (Warnings.wrn). By running this command a warning file will be created in the folder of the model python file. The text will be added to the warning file and an alert will be apear on the console that shows the warning file is created.
Argument
Type
Description
string
str
text of the warning
Example:
The following demonstrates the use of the warning command.
Python Code
import opensrane as opr opr.Misc.warning('This text will be printed in the warning file')
Note
There are some internal warning that shows model problem or lack of data. So, by start of the analysis, even user didn’t define any warning inside the model, if code encounter with problems the warning alarm will be appear.
Warning
It is highly recommended that user solve the problems mentioned in the warning file and provide a model without internal warnings.
Code Developed by: Bijan Sayyafzadeh