Skip to content

Commit

Permalink
fix relative import and time.clock in localFitParallel
Browse files Browse the repository at this point in the history
  • Loading branch information
bcdaniels committed Apr 13, 2022
1 parent d81bb80 commit 4831247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SirIsaac/localFitParallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

### Master Process ###
if MPI_myID == MASTER_PROCESS:
from .simplePickle import save
from SirIsaac.simplePickle import save

num_processors = comm.Get_size()
print(("localFitParallel: "\
Expand Down Expand Up @@ -134,12 +134,12 @@
print(("localFitParallel: "\
"worker {} working on work_array {}...".format(MPI_myID,work_array)))

startTime = time.clock()
startTime = time.time()

# do the work
workerResults = list( fitFunction(work_array) )

minimizationTimeSeconds = time.clock() - startTime
minimizationTimeSeconds = time.time() - startTime
workerResults.append(minimizationTimeSeconds)
workerResults.append(work_array)

Expand Down

0 comments on commit 4831247

Please sign in to comment.