eqcctpro 0.6.3__py3-none-any.whl → 0.6.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of eqcctpro might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eqcctpro
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Summary: EQCCTPro: A powerful seismic event detection toolkit
5
5
  Author-email: Constantinos Skevofilax <constantinos.skevofilax@austin.utexas.edu>, Victor Salles <victor.salles@beg.utexas.edu>
6
6
  Project-URL: Homepage, https://pypi.org/project/eqcctpro/
@@ -155,7 +155,7 @@ There are three main capabilities of EQCCTPro:
155
155
 
156
156
  These capabilities are achieved using the following core functions:
157
157
 
158
- - **EQCCTMSeedRunner** (for processing mSEED data)
158
+ - **RunEQCCTPro** (for processing mSEED data)
159
159
 
160
160
  - **EvaluateSystem** (for system evaluation)
161
161
 
@@ -164,9 +164,9 @@ These capabilities are achieved using the following core functions:
164
164
  - **OptimalGPUConfigurationFinder** (for GPU configuration optimization)
165
165
 
166
166
  ---
167
- ### **Processing mSEED data using EQCCTPro (EQCCTMSeedRunner)**
168
- To process mSEED from various seismic stations, use the **EQCCTMSeedRunner** class.
169
- **EQCCTMSeedRunner** enables users to process multiple mSEED from a given input directory, which consists of station directories formatted as follows:
167
+ ### **Processing mSEED data using EQCCTPro (RunEQCCTPro)**
168
+ To process mSEED from various seismic stations, use the **RunEQCCTPro** class.
169
+ **RunEQCCTPro** enables users to process multiple mSEED from a given input directory, which consists of station directories formatted as follows:
170
170
 
171
171
  ```sh
172
172
  [skevofilaxc 230_stations_1_min_dt]$ ls
@@ -199,12 +199,12 @@ TX.PB35.00.HH2__20241215T115800Z__20241215T120100Z.mseed
199
199
  ```
200
200
  EQCCT only needs one pose for the detection to occur, however more poses allow for better detection of the direction of the P and S waves.
201
201
 
202
- After setting up or utilizing the provided sample waveform directory, and install eqcctpro, import **EQCCTMseedRunner** as show below:
202
+ After setting up or utilizing the provided sample waveform directory, and install eqcctpro, import **RunEQCCTPro** as show below:
203
203
 
204
204
  ```python
205
- from eqcctpro import EQCCTMSeedRunner
205
+ from eqcctpro import RunEQCCTPro
206
206
 
207
- eqcct_runner = EQCCTMSeedRunner(
207
+ eqcct_runner = RunEQCCTPro(
208
208
  use_gpu=False,
209
209
  intra_threads=1,
210
210
  inter_threads=1,
@@ -221,7 +221,7 @@ eqcct_runner = EQCCTMSeedRunner(
221
221
  best_usecase_config=True,
222
222
  csv_dir='/path/to/csv',
223
223
  selected_gpus=[0],
224
- set_vram_mb=24750,
224
+ vram_mb=24750,
225
225
  specific_stations='AT01, BP01, DG05',
226
226
  start_time='2024-12-14 12:00:00',
227
227
  end_time='2024-12-15 12:00:00',
@@ -231,7 +231,7 @@ eqcct_runner = EQCCTMSeedRunner(
231
231
  eqcct_runner.run_eqcctpro()
232
232
  ```
233
233
 
234
- **EQCCTMseedRunner** has multiple input parameters that need to be configured and are defined below:
234
+ **RunEQCCTPro** has multiple input parameters that need to be configured and are defined below:
235
235
 
236
236
  - **`use_gpu (bool)`: True or False**
237
237
  - Tells Ray to use either the GPU(s) (True) or CPUs (False) on your computer to process the waveforms in the entire workflow
@@ -280,7 +280,7 @@ eqcct_runner.run_eqcctpro()
280
280
  - **`selected_gpus (list)`: default = None**
281
281
  - List of GPU IDs on your computer you want to use if `use_gpu = True`
282
282
  - None existing GPU IDs will cause the code to exit
283
- - **`set_vram_mb (float)`**
283
+ - **`vram_mb (float)`**
284
284
  - Value of the maximum amount of VRAM EQCCTPro can use
285
285
  - Must be a real value that is based on your hardware's physical memory space, if it exceeds the space the code will break due to **OutOfMemoryError**
286
286
  - **`specific_stations (str)`: default = None**
@@ -313,28 +313,6 @@ eqcct_runner.run_eqcctpro()
313
313
  ### **Evaluating Your Systems Runtime Performance Capabilites**
314
314
  To evaluate your system’s runtime performance capabilites for both your CPU(s) and GPU(s), the **EvaluateSystem** class allows you to autonomously evaluate your system:
315
315
 
316
- ```python
317
- from eqcctpro import EvaluateSystem
318
-
319
- eval_gpu = EvaluateSystem(
320
- mode='gpu',
321
- intra_threads=1,
322
- inter_threads=1,
323
- input_dir='/path/to/mseed',
324
- output_dir='/path/to/outputs',
325
- log_filepath='/path/to/outputs/eqcctpro.log',
326
- csv_dir='/path/to/csv',
327
- P_threshold=0.001,
328
- S_threshold=0.02,
329
- p_model_filepath='/path/to/model_p.h5',
330
- s_model_filepath='/path/to/model_s.h5',
331
- cpu_id_list=[0,1],
332
- set_vram_mb=24750,
333
- selected_gpus=[0],
334
- stations2use=2
335
- )
336
- eval_gpu.evaluate()
337
- ```
338
316
 
339
317
  ```python
340
318
  from eqcctpro import EvaluateSystem
@@ -368,9 +346,32 @@ eval_cpu = EvaluateSystem(
368
346
  eval_cpu.evaluate()
369
347
  ```
370
348
 
349
+ ```python
350
+ from eqcctpro import EvaluateSystem
351
+
352
+ eval_gpu = EvaluateSystem(
353
+ mode='gpu',
354
+ intra_threads=1,
355
+ inter_threads=1,
356
+ input_dir='/path/to/mseed',
357
+ output_dir='/path/to/outputs',
358
+ log_filepath='/path/to/outputs/eqcctpro.log',
359
+ csv_dir='/path/to/csv',
360
+ P_threshold=0.001,
361
+ S_threshold=0.02,
362
+ p_model_filepath='/path/to/model_p.h5',
363
+ s_model_filepath='/path/to/model_s.h5',
364
+ cpu_id_list=[0,1],
365
+ vram_mb=24750,
366
+ selected_gpus=[0],
367
+ stations2use=2
368
+ )
369
+ eval_gpu.evaluate()
370
+ ```
371
+
371
372
  **EvaluateSystem** will iterate through different combinations of CPU(s), Concurrent Timechunk and Station Tasks, as well as GPU(s), and the amount of VRAM (MB) each Concurrent Prediction can use.
372
373
  **EvaluateSystem** will take time, depending on the number of CPU/GPUs, the amount of VRAM available, and the total workload that needs to be tested. However, after doing the testing once for most if not all usecases,
373
- the trial data will be available and can be used to identify the optimal input parallelization configurations for **EQCCTMSeedRunner** to use to get the maximum amount of processing out of your system in the shortest amonut of time.
374
+ the trial data will be available and can be used to identify the optimal input parallelization configurations for **RunEQCCTPro** to use to get the maximum amount of processing out of your system in the shortest amonut of time.
374
375
 
375
376
  The following input parameters need to be configurated for **EvaluateSystem** to evaluate your system based on your desired utilization of EQCCTPro:
376
377
 
@@ -454,10 +455,10 @@ The following input parameters need to be configurated for **EvaluateSystem** to
454
455
  - **`tmp_dir (str)`: default = 1**
455
456
  - A temporary directory to store all temp files produced by EQCCTPro
456
457
  - Used to help ease system cleanup and to not write to system's default temporary directory
457
- - **`set_vram_mb (float)`**
458
+ - **`vram_mb (float)`**
458
459
  - Maximum amount of VRAM each Raylet can use (float).
459
460
  - Must be a real value that is based on your GPU's physical VRAM space, if it exceeds the space the code will break due to OutOfMemoryError
460
- - Good rule of thumb for calculating `set_vram_mb` = (GPU VRAM * .90 (to be safe)) / number_of_concurrent_station_predictions * number_of_concurrent_timechunk_predictions
461
+ - Good rule of thumb for calculating `vram_mb` = (GPU VRAM * .90 (to be safe)) / number_of_concurrent_station_predictions * number_of_concurrent_timechunk_predictions
461
462
  - **`selected_gpus (list)`: default = None**
462
463
  - List of GPU IDs on your computer you want to use if `mode = 'gpu'`
463
464
  - Non-existing GPU IDs will cause the code to exit
@@ -0,0 +1,5 @@
1
+ eqcctpro/__init__.py,sha256=JK27ZrLxVDNHsdorp7UAislI8haH23rZhnEivVM7hgA,141
2
+ eqcctpro-0.6.4.dist-info/METADATA,sha256=kUpXBT3BRBfi8LTzH0Lncc7m2BdUp3LHCPc0W4cGD0s,31502
3
+ eqcctpro-0.6.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ eqcctpro-0.6.4.dist-info/top_level.txt,sha256=u0cu2JdF7Z0ob7y4XdUCLoSGp_xOudAYz-fbsQ-B1yY,9
5
+ eqcctpro-0.6.4.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- eqcctpro/__init__.py,sha256=JK27ZrLxVDNHsdorp7UAislI8haH23rZhnEivVM7hgA,141
2
- eqcctpro-0.6.3.dist-info/METADATA,sha256=euugKmeVRY_dwODJE8g7no0KXjc4yUSkt9QYi4VSsj8,31566
3
- eqcctpro-0.6.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- eqcctpro-0.6.3.dist-info/top_level.txt,sha256=u0cu2JdF7Z0ob7y4XdUCLoSGp_xOudAYz-fbsQ-B1yY,9
5
- eqcctpro-0.6.3.dist-info/RECORD,,