Commit 08056a96 authored by RKGarcia's avatar RKGarcia
Browse files

Appease pepito

parent 91a7a6b4
......@@ -2,8 +2,9 @@
import netCDF4 as nc4
class NcRename:
def __init__(self, filename:str):
def __init__(self, filename: str):
super(NcRename, self).__init__() = nc4.Dataset(filename, 'r+')
......@@ -23,11 +24,11 @@ class NcRename:
if __name__=='__main__':
if __name__ == '__main__':
import sys
changes = [tuple(q.split(':')) for q in sys.argv[1:-1]]
ncr = NcRename(sys.argv[-1])
for k, f, t in changes:
ncr.rename(k, f, t)
for knd, frm, to in changes:
ncr.rename(knd, frm, to)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment