warpem / warp

https://warpem.github.io/warp/
GNU General Public License v3.0
31 stars 6 forks source link

ts_ctf does not work with --fit_phase #158

Open Luc1100 opened 1 month ago

Luc1100 commented 1 month ago

Hi,

I am trying out Warp on some data collected with a phase plate. When running ctf estimation on frame series with --fit_phase, it works great with the histogram centered around 0.5*pi. However, when I run ts_ctf with --fit_phase option, I get the error below. When running ts_ctf without that option it works fine. Any help would be appreciated, thanks!

Running command ts_ctf with: window = 512 range_low = 30 range_high = 7 defocus_min = 0.5 defocus_max = 8 voltage = 300 cs = 2.7 amplitude = 0.07 fit_phase = True auto_hand = 0 device_list = { } perdevice = 1 workers = { } settings = warp_tiltseries.settings input_data = { } input_data_recursive = False input_processing = null output_processing = null

No alternative input specified, will use input parameters from warp_tiltseries.settings File search will be relative to redacted/WRM_learning/redacted/tomostar 1 files found Parsing previous results for each item, if available... 1/1, previous metadata found for 1
Connecting to workers... Connected to 1 workers Failed to process redacted/WRM_learning/redacted/warp_tiltseries/TS16.tomostar, marked as unselected
Unhandled exception. System.AggregateException: One or more errors occurred. (Connection refused (localhost:38119)) ---> System.Net.Http.HttpRequestException: Connection refused (localhost:38119) ---> System.Net.Sockets.SocketException (111): Connection refused at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) at System.Net.Sockets.Socket.gWaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem) at System.Threading.Tasks.TaskCompletionSourceWithCancellation1.WaitWithCancellationAsync(CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Warp.WorkerConsole.SetFileOutput(String path) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpLib/WorkerWrapper.cs:line 541 at WarpTools.Commands.BaseCommand.<>c__DisplayClass1_0.b0(Int32 iitem, Int32 threadID) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpTools/Commands/BaseCommand.cs:line 103 at Warp.Tools.Helper.ForCPUGreedy(Int32 fromInclusive, Int32 toExclusive, Int32 nThreads, Action1 funcSetup, Action2 funcIterator, Action1 funcTeardown) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpLib/Tools/Helper.cs:line 786 at WarpTools.Commands.BaseCommand.IterateOverItems(WorkerWrapper[] workers, BaseOptions cli, Action2 body, Int32 oversubscribe) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpTools/Commands/BaseCommand.cs:line 67 at WarpTools.Commands.CTFTiltseries.Run(Object options) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpTools/Commands/Tiltseries/CTFTiltseries.cs:line 119 at WarpTools.WarpTools.Run(Object options) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpTools/Program.cs:line 30 at Warp.Tools.CommandLineParserHelper.ParseAndRun(String[] args, Func`2 run, Type[] verbs, String appName) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpLib/Tools/CommandLineParserHelper.cs:line 26 at WarpTools.WarpTools.Main(String[] args) in /usr/share/miniconda/envs/package-build/conda-bld/warp_1718655385920/work/WarpTools/Program.cs:line 17 at WarpTools.WarpTools.

(String[] args) Aborted (core dumped)

alisterburt commented 1 month ago

thanks for the report @Luc1100 ! I'll take a look into it but can't provide guarantees about a speedy resolution 🙂