Changeset 1100
- Timestamp:
- 03/05/21 19:34:20 (4 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/loggers/loggers.h
r1082 r1100 100 100 string getMessages() const { return msgs; } 101 101 string getCountSummary() const; ///< return the standard "... error(s), ... warning(s), ... message(s)" text (or empty string if count==0) 102 void setStoreOptions(int opts) {options= options&(~(StoreFirstMessage|StoreAllMessages))|(opts&(StoreFirstMessage|StoreAllMessages));}102 void setStoreOptions(int opts) {options=(options & (~(StoreFirstMessage|StoreAllMessages))) | (opts&(StoreFirstMessage|StoreAllMessages));} 103 103 104 104 LoggerToMemory(int opts = 0, int minimal_level_to_store = LOG_ERROR) :LoggerBase(opts), minleveltostore(minimal_level_to_store) -
cpp/frams/model/similarity/simil-measure.cpp
r1054 r1100 12 12 static ParamEntry simil_measure_paramtab[] = { 13 13 { "Creature: Similarity", 1, 2, "SimilMeasure", "Evaluates morphological dissimilarity. More information:\nhttp://www.framsticks.com/bib/Komosinski-et-al-2001\nhttp://www.framsticks.com/bib/Komosinski-and-Kubiak-2011\nhttp://www.framsticks.com/bib/Komosinski-2016\nhttps://doi.org/10.1007/978-3-030-16692-2_8", }, 14 { " type", 0, 0, "Type of similarity measure", "d 0 2 1 ~Graph greedy (vertex degree order and greedy matching)~Graph optimal (flexible criteria order and optimal matching)~Descriptor distribution (EMD on a histogram of descriptor values)", FIELD(type), "", },14 { "simil_type", 0, 0, "Type of similarity measure", "d 0 2 1 ~Graph greedy (vertex degree order and greedy matching)~Graph optimal (flexible criteria order and optimal matching)~Descriptor distribution (EMD on a histogram of descriptor values)", FIELD(type), "", }, 15 15 { "evaluateDistance", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "Evaluate model dissimilarity", "p f(oGeno,oGeno)", PROCEDURE(p_evaldistance), "Calculates dissimilarity between two models created from Geno objects.", }, 16 16 { 0, }, -
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r1098 r1100 988 988 989 989 property: 990 id:print_output991 name:Print messages992 help:Print messages on evolution progress.993 group:Extras994 type:d 0 1 0995 996 property:997 990 id:visualize 998 991 name:Show reticulopodia and nutrients … … 1011 1004 type:f 0 -1 0.01 1012 1005 group: 1013 1014 property:1015 id:logging1016 name:Log statistics to file1017 type:d 0 1 01018 group:1019 1020 property:1021 id:logPref1022 name:Log prefix1023 type:s1024 1006 1025 1007 property: … … 1281 1263 type:d 0 1 0 1282 1264 1265 property: 1266 id:logging 1267 name:Log statistics to file 1268 type:d 0 1 0 1269 group: 1270 1271 property: 1272 id:logPref 1273 name:Log prefix 1274 type:s 1275 1276 property: 1277 id:print_evol_progress 1278 name:Print evolution progress 1279 help:Print messages on evolution progress 1280 type:d 0 1 0 1281 1283 1282 state: 1284 1283 id:nutrient -
experiments/frams/foraminifera/data/scripts/foraminifera.inc
r1099 r1100 51 51 52 52 var dict = {"Time": Simulator.stepNumber, "FromIDs": mode->parentsuids, "ID": new_id, "Inherited": inherit, "Operation": oper, "Kind" : mode->gen}; 53 if (ExpProperties.print_ output== 1)53 if (ExpProperties.print_evol_progress == 1) 54 54 Simulator.print("[OFFSPRING] " + String.serialize(dict)); 55 55 } … … 285 285 function print_repro_info(cr) 286 286 { 287 if (ExpProperties.print_ output== 1)287 if (ExpProperties.print_evol_progress == 1) 288 288 Simulator.print("Reproduced " + cr.data->lifeparams->gen + " of species " + cr.data->lifeparams->species + " energy: " + cr.energy); 289 289 } -
framspy/frams.py
r1096 r1100 302 302 print("*** Could not find or open '%s' from '%s'.\n*** Did you provide proper arguments and is this file readable?\n" % (lib_name, os.getcwd())) 303 303 raise 304 os.chdir(original_dir) # restore c wd after loading so framsticks seethe expected directory304 os.chdir(original_dir) # restore current working dir after loading the library so framsticks sees the expected directory 305 305 306 306 c_api.init.argtypes = [ctypes.c_int, ctypes.POINTER(ctypes.c_char_p)] … … 345 345 c_args = (ctypes.c_char_p * len(initargs))(*list(a.encode(ExtValue._encoding) for a in initargs)) 346 346 c_api.init(len(initargs), c_args) 347 os.chdir(original_dir) # restore again, because framsticks changedir to 'data'347 os.chdir(original_dir) # restore current working dir again, because framsticks changes dir to 'data' 348 348 Root = ExtValue._rootObject() 349 349 for n in dir(Root):
Note: See TracChangeset
for help on using the changeset viewer.