-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename 'file_name' to 'name' in special files; new attr 'file_name' i…
…n general case
- Loading branch information
1 parent
dd7d809
commit 632c2e7
Showing
9 changed files
with
559 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Class for the ogs ASC file. | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
from ogs5py.fileclasses.base import LineFile | ||
|
||
|
||
class ASC(LineFile): | ||
""" | ||
Class for the ogs ASC file. | ||
Parameters | ||
---------- | ||
lines : list of str, optional | ||
content of the file as a list of lines | ||
Default: None | ||
file_name : str, optional | ||
name of the file without extension | ||
Default: "textfile" | ||
task_root : str, optional | ||
Path to the destiny folder. | ||
Default: cwd+"ogs5model" | ||
task_id : str, optional | ||
Name for the ogs task. (a place holder) | ||
Default: "model" | ||
Notes | ||
----- | ||
This is just handled as a line-wise file. You can access the data by line | ||
with: | ||
ASC.lines | ||
This file type comes either from .tim .pcs or .gem | ||
""" | ||
|
||
def __init__(self, **OGS_Config): | ||
super(ASC, self).__init__(**OGS_Config) | ||
self.file_ext = ".asc" | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Class for the ogs ASC file. | ||
""" | ||
|
||
from __future__ import absolute_import, division, print_function | ||
from ogs5py.fileclasses.base import LineFile | ||
|
||
|
||
class ASC(LineFile): | ||
""" | ||
Class for the ogs ASC file. | ||
Parameters | ||
---------- | ||
lines : list of str, optional | ||
content of the file as a list of lines | ||
Default: None | ||
name : str, optional | ||
name of the file without extension | ||
Default: "textfile" | ||
task_root : str, optional | ||
Path to the destiny folder. | ||
Default: cwd+"ogs5model" | ||
task_id : str, optional | ||
Name for the ogs task. (a place holder) | ||
Default: "model" | ||
Notes | ||
----- | ||
This is just handled as a line-wise file. You can access the data by line | ||
with: | ||
ASC.lines | ||
This file type comes either from .tim .pcs or .gem | ||
""" | ||
|
||
def __init__(self, **OGS_Config): | ||
super(ASC, self).__init__(**OGS_Config) | ||
self.file_ext = ".asc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.