Skip to content

Commit

Permalink
Got rid of quasimc stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Mar 10, 2023
1 parent c79d6d3 commit 2d6a990
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions examples/morphology_test_cases/global/ctem_io_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,3 @@ def create_rplot(parameters,odist,pdist,tdist,ph1):

return

def write_realcraters(parameters, realcraters):
"""writes file of real craters for use in quasi-MC runs"""

filename = parameters['workingdir'] + 'craterlist.dat'
numpy.savetxt(filename, realcraters, fmt='%1.8e', delimiter='\t')

return
8 changes: 0 additions & 8 deletions python/ctem/ctem/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ def read_user_input(user):
if ('impfile' == fields[0].lower()): user['impfile'] = os.path.join(user['workingdir'],fields[1])
if ('maxcrat' == fields[0].lower()): user['maxcrat'] = real2float(fields[1])
if ('sfdcompare' == fields[0].lower()): user['sfdcompare'] = os.path.join(user['workingdir'], fields[1])
if ('realcraterlist' == fields[0].lower()): user['realcraterlist'] = os.path.join(user['workingdir'], fields[1])
if ('interval' == fields[0].lower()): user['interval'] = real2float(fields[1])
if ('numintervals' == fields[0].lower()): user['numintervals'] = int(fields[1])
if ('popupconsole' == fields[0].lower()): user['popupconsole'] = fields[1]
Expand Down Expand Up @@ -424,13 +423,6 @@ def write_production(filename, production):
return


def write_realcraters(filename, realcraters):
"""Writes file of real craters for use in quasi-MC runs"""

np.savetxt(filename, realcraters, fmt='%1.8e', delimiter='\t')

return

def write_temp_input(user, filename):
"""Makes changes to a temporary input file for use when generating craterlist.dat for quasimc runs"""

Expand Down

0 comments on commit 2d6a990

Please sign in to comment.