Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Michael Hohn
2023-07-10 09:03:45 -07:00
committed by =Michael Hohn
3 changed files with 7 additions and 1 deletions

View File

@@ -56,6 +56,8 @@ def _signature_dict(args, elem, context: Context):
if args.typedef_signatures:
# Give every unique struct a name and use a reference to it as value.
if signature not in context.sig_to_typedef:
#cannot have leading 0 hashes later in table joins so replace now
#context.sig_to_typedef[signature] = str("Struct%04d" % shorthash(signature)).replace("0", "1")
context.sig_to_typedef[signature] = "Struct%04d" % shorthash(signature)
typedef = context.sig_to_typedef[signature]
return typedef
@@ -82,6 +84,8 @@ def _signature_list(args, elem, context):
if args.typedef_signatures:
# Give every unique array a name and use a reference to it as value.
if signature not in context.sig_to_typedef:
#cannot have leading 0 hashes later in table joins so replace now
#context.sig_to_typedef[signature] = str("Array%04d" % shorthash(signature)).replace("0", "1")
context.sig_to_typedef[signature] = "Array%04d" % shorthash(signature)
typedef = context.sig_to_typedef[signature]
return typedef

View File

@@ -115,6 +115,8 @@ def joins_for_problem(tgraph, af_0350_location):
#
# Form the message dataframe (@kind problem) via joins
#
import IPython
IPython.embed(header="spot 1")
kind_problem_1 = (
aft(6343)