mspass-team / mspass

Massive Parallel Analysis System for Seismologists
https://mspass.org
BSD 3-Clause "New" or "Revised" License
30 stars 12 forks source link

add starttime method #442

Closed pavlis closed 1 year ago

pavlis commented 1 year ago

This branch has a trivial change. I added a one line lambda to the pybind11 code for BasicTimeSeries to add an alias "starttime" method that is effectively the same thing as the t0 method of BasicTimeSeries. Python applications can use starttime() an alternative to using the attribute t0. To some it might be less confusing since there is already and endtime() method.

codecov[bot] commented 1 year ago

Codecov Report

Merging #442 (c95eb64) into master (e0d3fa4) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #442   +/-   ##
=======================================
  Coverage   54.28%   54.28%           
=======================================
  Files         144      144           
  Lines       21952    21953    +1     
=======================================
+ Hits        11917    11918    +1     
  Misses      10035    10035           
Impacted Files Coverage Δ
cxx/python/seismic/seismic_py.cc 91.11% <100.00%> (+0.01%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

wangyinz commented 1 year ago

That makes sense. I got it merged.