File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,15 @@ class ASRPickleVisitor :
7272 s.append (" )" );
7373 }
7474 void visit_Module (const ASR::Module_t &x) {
75+ // hide intrinsic modules and numpy module by default
7576 if (!show_intrinsic_modules &&
76- (x.m_intrinsic || startswith (x.m_name , " lfortran_intrinsic_ " ))) {
77+ (x.m_intrinsic || startswith (x.m_name , " numpy " ))) {
7778 s.append (" (" );
7879 if (use_colors) {
7980 s.append (color (style::bold));
8081 s.append (color (fg::magenta));
8182 }
82- s.append (" IntrinsicModule" );
83+ s.append (x. m_intrinsic ? " IntrinsicModule" : " Module " );
8384 if (use_colors) {
8485 s.append (color (fg::reset));
8586 s.append (color (style::reset));
@@ -202,7 +203,9 @@ class ASRJsonVisitor :
202203 }
203204
204205 void visit_Module (const ASR::Module_t &x) {
205- if (x.m_intrinsic && !show_intrinsic_modules) { // do not show intrinsic modules by default
206+ // hide intrinsic modules and numpy module by default
207+ if (!show_intrinsic_modules &&
208+ (x.m_intrinsic || startswith (x.m_name , " numpy" ))) {
206209 s.append (" {" );
207210 inc_indent (); s.append (" \n " + indtd);
208211 s.append (" \" node\" : \" Module\" " );
You can’t perform that action at this time.
0 commit comments