Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Simionato committed Mar 7, 2025
1 parent 0844ed4 commit 1930dc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openquake/commands/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.
import os
from openquake.baselib import performance, hdf5
from openquake.baselib import general, performance, hdf5
from openquake.commonlib import logs
from openquake.calculators.extract import Extractor, WebExtractor

Expand Down Expand Up @@ -49,7 +49,7 @@ def main(what,
else: # save as npz
fname = os.path.join(extract_dir, '%s_%d.npz' % (w, calc_id))
hdf5.save_npz(aw, fname)
print('Saved', fname)
print(f'Saved {general.humansize(os.path.getsize(fname))} in {fname}')
if mon.duration > 1:
print(mon)

Expand Down
2 changes: 1 addition & 1 deletion openquake/hazardlib/tests/shakemap/parsers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def test_5(self):
user=user, use_shakemap=True)
self.assertIsNone(rup)
rupture_issue = ('Unable to convert the rupture from the USGS format: '
' at least one surface is not rectangular')
'at least one surface is not rectangular')
self.assertEqual(dic['rupture_issue'], rupture_issue)

def test_6(self):
Expand Down

0 comments on commit 1930dc3

Please sign in to comment.