FloatCSEP

From SCECpedia
Jump to navigationJump to search

Testing of latest floatCSEP tutorials...


Interpretting yml files

syntax may not be consistent, with mix of colon: attr_name: attr_value and colon: dash then attr_name: attr_value The file paths are relative to the config.yml file The valid module names are not clear the valid cmap is not clear No indication that the attri catalog: the value is boolean True

Models:
  -best_model:
       path: best_model.dat

Test Cases

  • case_a

The rules for specifying a test module name seem to be give the

      func: poisson_evaluations.number_test
      plot_func: plot_poisson_consistency_test
  • case_b
  • case_c
  • case_d
introduces wheel as a model
  • case_e

The impact of the plot command not obvious. Seems to replace cmap: magma with colormap:magma, which may mean the same thing.

  • case_f

read the docs links for floatCSEP

Mac Hardward

  • Macbook pro Quad-core Intel i5
  • Sonoma 14.7

Conda environment on Mac

/Users/maechlin/dev
$ conda info
     active environment : base
    active env location : /Users/maechlin/anaconda3
            shell level : 1
       user config file : /Users/maechlin/.condarc
 populated config files : /Users/maechlin/.condarc
          conda version : 23.5.0
    conda-build version : 3.18.11
         python version : 3.8.15.final.0

$ conda list

  • pycsep 0.6.2 pyhd8ed1ab_0 conda-forge

Update to conda environment command:

      copying obspy/signal/tests/data/tiny_quality_file.mseed -> build/lib.macosx-10.13-x86_64-cpython-311/obspy/signal/tests/data
      copying obspy/signal/tests/data/unknown.resp -> build/lib.macosx-10.13-x86_64-cpython-311/obspy/signal/tests/data
      creating build/lib.macosx-10.13-x86_64-cpython-311/obspy/signal/tests/data/segfaulting_RESPs
      copying obspy/signal/tests/data/segfaulting_RESPs/RESP.IE.LLRI..EHZ -> build/lib.macosx-10.13-x86_64-cpython-311/obspy/signal/tests/data/segfaulting_RESPs
      running build_ext
      building 'gcf' extension
      creating build/temp.macosx-10.13-x86_64-cpython-311/obspy/io/gcf/src
      clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/maechlin/anaconda3/envs/csep_env/include -fPIC -O2 -isystem /Users/maechlin/anaconda3/envs/csep_env/include -I/Users/maechlin/anaconda3/envs/csep_env/include/python3.11 -c obspy/io/gcf/src/gcf_io.c -o build/temp.macosx-10.13-x86_64-cpython-311/obspy/io/gcf/src/gcf_io.o
      xcode-select: note: No developer tools were found, requesting install.
      If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
      See `man xcode-select` for more details.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for obspy
Successfully built floatcsep pycsep
Failed to build obspy
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (obspy)

Try install of clang on Mac

  • xcode-select --install

Brings up a install window on Mac desktop with 5 minute install

  • Exit environment
  • New terminal window
  • conda activity csep_env
  • cd dev/floatcsep
  • pip install .

Complete build no errors

Related Entries