Skip to content

Commit

Permalink
Bug fixes and update to 0.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-m-mudd committed Dec 13, 2022
1 parent d3deb28 commit 46ce7d2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
3 changes: 2 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ Some fixes
* More fixes to the opentopography grabber
* This uses an api key in a file now

0.4.8 (2022-12-06)
0.4.9 (2022-12-13)
------------------

Some fixes

* Added the lsdtt-valley-metrics to the driver interface
* Added point mapping to the plotting tools
* A number of bug fixes to the command line interface
14 changes: 9 additions & 5 deletions lsdviztools/lsdplottingtools/lsdmap_swathplotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import numpy as np
import os
import pandas as pd
from . import cubehelix
import matplotlib.pyplot as plt
import matplotlib as mpl
Expand Down Expand Up @@ -60,12 +61,15 @@ def PlotSwath(swath_csv_name, FigFileName = 'Image.png', size_format = "geomorph
ax = fig.add_subplot(gs[25:100,10:95])

print("Getting data from the file: "+swath_csv_name)
thisPointData = LSDMap_PD.LSDMap_PointData(swath_csv_name)
df = pd.read_csv(swath_csv_name)

print("The headers are: ")
print(list(df))

distance = thisPointData.QueryData('Distance').values
mean_val = thisPointData.QueryData('Mean').values
min_val = thisPointData.QueryData('Min').values
max_val = thisPointData.QueryData('Max').values
distance = df["distance"].values
mean_val = df["median_z"].values
min_val = df["minimum_z"].values
max_val = df["max_z"].values

# Get the minimum and maximum distances
X_axis_min = 0
Expand Down
2 changes: 1 addition & 1 deletion lsdviztools/scripts/lsdtt_plotbasicrasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def main(args=None):

# See if you should create a basemap
if args.create_basemap_figure:
import LSDBasemapTools as LSDBM
from lsdviztools.lsdbasemaptools import lsdmap_basemaptools as LSDBM

MakeBasemapDirectory(this_dir)
RasterFile = args.fname_prefix+".bil"
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.4.8
current_version = 0.4.9
commit = True
tag = True

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
description="lsdviztools is a collection of routines for plotting geospatial data, with a focus on data produces by LSDTopoTools or by lsdtopytools.",
entry_points={
Expand Down

0 comments on commit 46ce7d2

Please sign in to comment.