Skip to content

Commit

Permalink
Add more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cheng-hung committed Aug 12, 2024
1 parent ff2461d commit 9f3c89a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/_LDRD_Kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def macro_agent(self, qserver_process, RM, check_target=False):
meet_target = (peak_diff <= peak_tolerance)

if check_target and meet_target:
print(f'\nTarget peak: {self.inputs.peak_target[0]} nm vs. Current peak: {self.PL_fitting['peak_emission']} nm\n')
print(f'\nTarget peak: {self.inputs.peak_target[0]} nm vs. Current peak: {self.PL_fitting["peak_emission"]} nm\n')
print(f'\nReach the target, stop iteration, stop all pumps, and wash the loop.\n')

### Stop all infusing pumps and wash loop
Expand Down Expand Up @@ -822,7 +822,7 @@ def macro_15_save_data(self, stream_name):
"""

## Save fitting data
print(f'\nFitting function: {self.PL_fitting['fit_function']}\n')
print(f'\nFitting function: {self.PL_fitting["fit_function"]}\n')
de.dic_to_csv_for_stream(self.inputs.csv_path[0],
self.qepro_dic,
self.metadata_dic,
Expand Down
4 changes: 2 additions & 2 deletions scripts/kafka_consumer_iterate_XPD_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ def print_message(consumer, doctype, doc, check_abs365 = False, agent_iteration


################# macro_17_add_queue: Add queus task to qserver ###################
## ##
## Depend on # of good/bad data, add items into queue item or stop ##
## 'take_a_uvvis' or new_points of self.agent ##
## Add nother 'take_a_uvvis' into queue ##
## Make prediction by self.agent and add new_points to queue ##
#####################################################################################
kafka_process.macro_17_add_queue(stream_name, qserver_process, RM)

Expand Down

0 comments on commit 9f3c89a

Please sign in to comment.