Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5955411
Merge tag 'v2.2.0' into develop
Feb 17, 2023
063f528
Merge tag 'v2.2.1' into develop
nsoblath May 3, 2024
1c76feb
Made copies of egg3_reader files. Renamed to locust_egg_reader.
pkolbeck Dec 13, 2024
b0209c4
Made copies of the egg3_reader and renamed all instances of egg3_read…
pkolbeck Jan 10, 2025
0c14554
Merge branch 'hotfix/2.2.2' into feature/locust_egg_reader
pkolbeck Jan 10, 2025
ff56560
merged branch hotfix to use new dockerfile. Attempted build with locu…
pkolbeck Jan 10, 2025
180da49
removed build, should be untracked haha.
pkolbeck Jan 10, 2025
33332b6
Merge branch 'hotfix/2.2.2' into feature/locust_egg_reader
pkolbeck Jan 10, 2025
2465fd3
updated submodule commits
pkolbeck Jan 10, 2025
8c6e79f
Merge branch 'hotfix/2.2.2' into feature/locust_egg_reader
pkolbeck Feb 7, 2025
dc3b633
Merge tag 'v2.2.2' into develop
nsoblath Feb 14, 2025
b0f4306
Merge tag 'v2.2.3' into develop
nsoblath Feb 18, 2025
e94bd2b
Updated sandfly (on feature branch)
nsoblath Feb 19, 2025
be186bc
Add slack_relayer
nsoblath Feb 19, 2025
95d232d
Adapt to refactoring of message_relayer
nsoblath Feb 19, 2025
2c31516
Sandfly update
nsoblath Feb 19, 2025
67b3a16
Allow slack_relayer to send a more complex payload
nsoblath Feb 19, 2025
8a6e846
Sandfly update
nsoblath Feb 19, 2025
71a690d
Use templated conductor::execute()
nsoblath Feb 19, 2025
a56a9b0
No need to set a default auth file anymore
nsoblath Feb 19, 2025
23856c3
Update sandfly
nsoblath Feb 19, 2025
4308604
Update sandfly and set default name to psyllid
nsoblath Feb 19, 2025
d753051
Merge branch 'feature/relayer_change' into feature/locust_egg_reader
pkolbeck Feb 21, 2025
1fe081d
Initial locust reader implementation. To test.
pkolbeck Feb 22, 2025
e6f0919
Potentially working locust_egg_reader? Builds and seems to process a …
pkolbeck Feb 23, 2025
7f1ba0d
uint to int conversion in locust egg reader.
pkolbeck Apr 15, 2025
f60292a
Added uint-to-int capabilities to locust egg reader.
pkolbeck Apr 22, 2025
029e0d1
[no ci] Doc update
nsoblath May 2, 2025
bbfc535
added a 2
pkolbeck May 16, 2025
c95c323
Renaming fixed.
pkolbeck May 16, 2025
25d5127
Reading in sample size now
pkolbeck May 30, 2025
cbe8791
sample size
pkolbeck May 30, 2025
438ac65
Updated locust egg reader to hopefully correctly handle the sample size.
pkolbeck Jun 17, 2025
236894d
removed a t
pkolbeck Jun 17, 2025
a1b1808
Fixed record read incrementing
pkolbeck Jun 17, 2025
d60ceb8
fixed incrementing, actually though.
pkolbeck Jun 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ endif( FFTW_FOUND )
# Boost (1.48 required for container; scarab minimum is 1.46)
#find_package( Boost 1.48.0 REQUIRED )

# Sandfly
add_definitions( -DDRIPLINE_AUTH_FILE=~/.project8_authentications.json )

# Included external dependencies
# Including: tk_spline
add_subdirectory( external )
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV PSYLLID_TAG=${psyllid_tag}
ENV PSYLLID_INSTALL_PREFIX=${P8_ROOT}/${psyllid_subdir}/${PSYLLID_TAG}
ENV NARG=${narg}

ENV PATH="${PATH}:${PSYLLID_INSTALL_PREFIX}"
ENV PATH="${PATH}:${PSYLLID_INSTALL_PREFIX}/bin"

# Build image with dev dependencies
FROM base AS deps
Expand Down
7 changes: 5 additions & 2 deletions source/applications/psyllid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "conductor.hh"
#include "sandfly_error.hh"
#include "server_config.hh"
#include "slack_relayer.hh"

#include "application.hh"
#include "logger.hh"
Expand Down Expand Up @@ -41,18 +42,20 @@ int main( int argc, char** argv )
// The application
scarab::main_app the_main;
conductor the_conductor;
the_conductor.set_rc_creator< daq_control >();

// Default configuration
// Same as sandfly, but change the name
the_main.default_config() = server_config();
the_main.default_config()["name"]() = "psyllid";

// The main execution callback
the_main.callback( [&](){
scarab::signal_handler t_sig_hand;
auto t_cwrap = scarab::wrap_cancelable( the_conductor );
t_sig_hand.add_cancelable( t_cwrap );

the_conductor.execute( the_main.primary_config(), the_main.auth() );
the_conductor.execute< daq_control >( the_main.primary_config(), the_main.auth(),
std::make_shared< slack_relayer >(the_main.primary_config(), the_main.auth()) );
} );

// Command line options
Expand Down
4 changes: 2 additions & 2 deletions source/control/daq_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace psyllid
catch( std::exception& e )
{
LERROR( plog, "Unable to start files: " << e.what() );
f_msg_relay->slack_error( std::string("Unable to start files: ") + e.what() );
f_msg_relay->send_error( std::string("Unable to start files: ") + e.what() );
set_status( status::error );
LDEBUG( plog, "Canceling midge" );
if( f_midge_pkg.have_lock() ) f_midge_pkg->cancel();
Expand All @@ -81,7 +81,7 @@ namespace psyllid
catch( std::exception& e )
{
LERROR( plog, "Unable to finish files: " << e.what() );
f_msg_relay->slack_error( std::string("Unable to finish files: ") + e.what() );
f_msg_relay->send_error( std::string("Unable to finish files: ") + e.what() );
set_status( status::error );
LDEBUG( plog, "Canceling midge" );
if( f_midge_pkg.have_lock() ) f_midge_pkg->cancel();
Expand Down
2 changes: 2 additions & 0 deletions source/daq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set( headers
event_builder.hh
#single_value_trigger.hh
frequency_mask_trigger.hh
locust_egg_reader.hh
packet_receiver_socket.hh
roach_config.hh
streaming_writer.hh
Expand All @@ -25,6 +26,7 @@ set( sources
event_builder.cc
#single_value_trigger.cc
frequency_mask_trigger.cc
locust_egg_reader.cc
packet_receiver_socket.cc
roach_config.cc
streaming_writer.cc
Expand Down
2 changes: 1 addition & 1 deletion source/daq/frequency_mask_trigger.hh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace psyllid
- "threshold-power-snr": float -- The threshold SNR, given as a power SNR
- "threshold-power-snr-high": float -- A second SNR threshold, given as power SNR
- "threshold-dB": float -- The threshold SNR, given as a dB factor
- "trigger-mode": string -- The trigger mode, can be set to "single-level-trigger" or "two-level-trigger"
- "trigger-mode": string -- The trigger mode, can be set to "single-level" or "two-level"
- "n-spline-points": uint -- The number of points to have in the spline fit for the trigger mask
- "mask-configuration": string || node -- If a string, path to a yaml file with mask and mask-data arrays to populate the respective vectors; if a node, then contains those arrays of floats.

Expand Down
Loading
Loading