Skip to content

Commit

Permalink
removed print statements for multiprocessing from solvers/opendss/__i…
Browse files Browse the repository at this point in the history
…nit__
  • Loading branch information
jenny-nyx committed Jul 15, 2024
1 parent 1adb785 commit 7b6fa1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions omf/solvers/opendss/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,16 +452,16 @@ def hosting_capacity_all(FNAME:str, max_test_kw:float=50000, BUS_LIST:list = Non
pool = multiprocessing.Pool( processes=cores )
print(f'Running multiprocessor {len(gen_buses)} times with {cores} cores')
all_output.extend(pool.starmap(multiprocessor_function, [(fullpath, max_test_kw, lock, bus) for bus in gen_buses]))
print( "multiprocess all output: ", all_output)
# print( "multiprocess all output: ", all_output)
elif multiprocess == False:
for bus in gen_buses:
try:
single_output = get_hosting_capacity_of_single_bus(fullpath, bus, max_test_kw)
print( "multiprocessor false single output: ", single_output )
# print( "multiprocessor false single output: ", single_output )
all_output.append(single_output)
except:
print(f'Could not solve hosting capacity for BUS_NAME={bus}')
print( "multiprocessor false all_output: ", all_output )
# print( "multiprocessor false all_output: ", all_output )
return all_output

# DEPRECATED
Expand Down

0 comments on commit 7b6fa1a

Please sign in to comment.