Skip to content

Commit

Permalink
fix plot_cross_section batch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RJbalikian committed Jan 15, 2025
1 parent eb59b8f commit 9730468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sprit/sprit_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def plot_cross_section(hvsr_data, title=None, fig=None, ax=None, use_elevation=
if verbose:
print("Getting data batch for cross section plot")
batchExt = None
if not isinstance(hvsr_data, sprit_hvsr.HVSRBatch) :
if isinstance(hvsr_data, (str, os.PathLike, pathlib.Path)):
if pathlib.Path(hvsr_data).exists() and pathlib.Path(hvsr_data).is_dir():
batchExt = 'hvsr'
hvDataBatch = sprit_hvsr.HVSRBatch(hvsr_data, batch_ext=batchExt)
Expand Down

0 comments on commit 9730468

Please sign in to comment.