Giter Site home page Giter Site logo

Comments (3)

BDonnot avatar BDonnot commented on August 13, 2024

Hello,

You can use the new feature by:

First nstalling grid2op from source from the github https://github.com/rte-france/Grid2Op.git installing branch dev_1.9.8 (it should show version 1.9.8.dev0)

Then you can create a masked environment with:

import grid2op
from grid2op.Environment import MaskedEnvironment

lines_I_care_about = np.zeros(n_line, dtype=bool)
lines_I_care_about[IDs of these lines] = True

env = MaskedEnvironment(grid2op.make(env_name),
                        lines_of_interest=lines_I_care_about))

I did not completely test it but it should be working relatively well, i'll try to test it more in depth ASAP

from grid2op.

EBoguslawski avatar EBoguslawski commented on August 13, 2024

Hello Benjamin,

Thank you a lot for making this feature available so quickly !

:)

from grid2op.

BDonnot avatar BDonnot commented on August 13, 2024

Added in 1.9.8 version :-)

from grid2op.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.