# How to turn off the warn from PowerModels.jl

**URL:** <https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289>\
**Category:** Optimization (Mathematical)\
**Tags:** question, powermodels\
**Created:** [May 24, 2025, 6:15am UTC](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289 "2025-05-24T06:15:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [May 24, 2025, 6:15am UTC](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289/1 "2025-05-24T06:15:11Z")

</div>

```julia
julia> import PowerModels

julia> PowerModels.make_basic_network(PowerModels.parse_file("data/case118.m"));
[warn | PowerModels]: this code only supports angmin values in -90 deg. to 90 deg., tightening the value on branch 1 from -360.0 to -60.0 deg.
# many many lines of warn

```

I wonder how to turn off the warns above.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [May 24, 2025, 7:42am UTC](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289/2 "2025-05-24T07:42:35Z")

</div>

Try `PowerModels.silence()`.

Why do you want to hide the warnings?

---

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [May 24, 2025, 8:44am UTC](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289/3 "2025-05-24T08:44:33Z")

</div>

> [@odow](#):
>
> Why do you want to hide the warnings?

Because it flushes my screen.
