Skip to content

Commit

Permalink
Merge pull request #30 from pnbabu/nest_conn_builder
Browse files Browse the repository at this point in the history
Modify StepPatternBuilder to inherit from BipartiteConnBuilder
  • Loading branch information
pnbabu authored Sep 23, 2024
2 parents 7273612 + 05e7e0c commit 1bebe8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/step_pattern_builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@

mynest::StepPatternBuilder::StepPatternBuilder( const nest::NodeCollectionPTR sources,
const nest::NodeCollectionPTR targets,
nest::ThirdOutBuilder* third_out,
const DictionaryDatum& conn_spec,
const std::vector< DictionaryDatum >& syn_spec )
: nest::ConnBuilder( sources, targets, conn_spec, syn_spec )
: nest::BipartiteConnBuilder( sources, targets, third_out, conn_spec, syn_spec )
, source_step_( ( *conn_spec )[ Name( "source_step" ) ] )
, target_step_( ( *conn_spec )[ Name( "target_step" ) ] )
{
Expand Down
3 changes: 2 additions & 1 deletion src/step_pattern_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
namespace mynest
{

class StepPatternBuilder : public nest::ConnBuilder
class StepPatternBuilder : public nest::BipartiteConnBuilder
{
public:
StepPatternBuilder( const nest::NodeCollectionPTR sources,
const nest::NodeCollectionPTR targets,
nest::ThirdOutBuilder* third_out,
const DictionaryDatum& conn_spec,
const std::vector< DictionaryDatum >& syn_spec );

Expand Down

0 comments on commit 1bebe8a

Please sign in to comment.