File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1359,7 +1359,10 @@ def write(
13591359 if write_netcdf :
13601360 # set data storage to write ascii for netcdf
13611361 pp ._set_netcdf_storage ()
1362- if pp .package_type .startswith ("dis" ):
1362+ if (
1363+ pp .package_type .startswith ("dis" )
1364+ and hasattr (pp , "crs" )
1365+ ):
13631366 crs = pp .crs .get_data ()
13641367 if crs is not None and self .modelgrid .crs is None :
13651368 self .modelgrid .crs = crs [0 ][1 ]
Original file line number Diff line number Diff line change @@ -305,7 +305,7 @@ def reset_delimiter_used():
305305
306306 @staticmethod
307307 def split_data_line (line , external_file = False , delimiter_conf_length = 15 ):
308- no_split_keys = [' crs' , ' wkt' ]
308+ no_split_keys = [" crs" , " wkt" ]
309309 if PyListUtil .line_num > delimiter_conf_length and PyListUtil .consistent_delim :
310310 # consistent delimiter has been found. continue using that
311311 # delimiter without doing further checks
You can’t perform that action at this time.
0 commit comments