Skip to content

Commit

Permalink
The write pulse flag can now be set from PyHelios
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoesmp authored and han16nah committed Oct 22, 2024
1 parent fc3305b commit 01a6efd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/pybinds/PyHeliosSimulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,15 @@ void PyHeliosSimulation::loadSurvey(
bool writeWaveform,
bool calcEchowidth,
bool fullWaveNoise,
bool platformNoiseDisabled
bool platformNoiseDisabled,
bool writePulse
){
xmlreader->sceneLoader.kdtFactoryType = kdtFactory;
xmlreader->sceneLoader.kdtNumJobs = kdtJobs;
xmlreader->sceneLoader.kdtSAHLossNodes = kdtSAHLossNodes;
survey = xmlreader->load(legNoiseDisabled, rebuildScene);
survey->scanner->setWriteWaveform(writeWaveform);
survey->scanner->setWritePulse(writePulse);
survey->scanner->setCalcEchowidth(calcEchowidth);
survey->scanner->setFullWaveNoise(fullWaveNoise);
survey->scanner->setPlatformNoiseDisabled(platformNoiseDisabled);
Expand Down
3 changes: 2 additions & 1 deletion src/pybinds/PyHeliosSimulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@ class PyHeliosSimulation{
bool writeWaveform = false,
bool calcEchowidth = false,
bool fullWaveNoise = false,
bool platformNoiseDisabled = true
bool platformNoiseDisabled = true,
bool writePulse = false
);
void addRotateFilter(
double q0,
Expand Down

0 comments on commit 01a6efd

Please sign in to comment.