Skip to content

Commit

Permalink
Add some docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlueter committed Aug 30, 2023
1 parent 87eae32 commit ae185c3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions NuRadioReco/detector/RNO_G/db_mongo_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,22 @@ def get_complete_station_information(


def get_channel_signal_chain(self, channel_signal_id, measurement_name=None, verbose=True):
"""
Returns the response data for a given signal chain.
Parameters
----------
channel_signal_id: str
Indentifier of the signal chain
Returns
-------
signal_chain: dict
A dictinoary which among otherthings contains the "response_chain" which carries the measured response for the different
components in the signal chain.
"""

# load the signal chain information:
channel_sig_info = self.get_channel_signal_chain_measurement(
Expand Down Expand Up @@ -1212,9 +1228,8 @@ def query_modification_timestamps_per_station(self):
Collects all the timestamps for station and channel (de)commissioning from the database.
Combines those to get a list of timestamps when modifications happened which requiers to update the buffer.
Returns
------
-------
station_data: dict(dict(list))
Returns for each station (key = station.id) a dictionary with three entries:
Expand Down Expand Up @@ -1244,9 +1259,7 @@ def query_modification_timestamps_per_station(self):
"station_commission_timestamps": station_times_comm,
"station_decommission_timestamps": station_times_decomm
}

logger.info(station_data)


# store timestamps, which can be used with np.digitize
modification_timestamp_dict[station_id] = station_data

Expand Down

0 comments on commit ae185c3

Please sign in to comment.