Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone client doesn't work with itools #173

Open
jonenst opened this issue Feb 23, 2021 · 0 comments
Open

Standalone client doesn't work with itools #173

jonenst opened this issue Feb 23, 2021 · 0 comments

Comments

@jonenst
Copy link
Collaborator

jonenst commented Feb 23, 2021

  • Do you want to request a feature or report a bug?
    bug

  • What is the current behavior?
    hard to use itools to do something with network-store

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    itools convert-network --input-file a.xiidm --output-file b.xiidm --output-format XIIDM

with the following config.yml

network:
    default-impl-name: NetworkStore
  • What is the expected behavior?
    works

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
    To fix it, I had to :

  • use network-store-client, instead of network-store-iidm-impl because some extensions are in the client
  • add a NetworkFactoryService class:
package com.powsybl.network.store.iidm.impl;
import com.google.auto.service.AutoService;
import com.powsybl.iidm.network.NetworkFactory;
import com.powsybl.iidm.network.NetworkFactoryService;

@AutoService(NetworkFactoryService.class)
public class NetworkFactoryServiceImpl implements NetworkFactoryService {

    @Override
    public String getName() {
        return "NetworkStore";
    }

    @Override
    public NetworkFactory createNetworkFactory() {
        return new NetworkFactoryImpl();
    }
}
@jonenst jonenst changed the title Standaloe client doesn't work with itools Standalone client doesn't work with itools Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant