Skip to content

Commit fb75562

Browse files
committed
Tiny update of oriented object identifiaction
1 parent 7ba6b04 commit fb75562

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/py_eddy_tracker/tracking.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from numpy import bool_, array, arange, ones, setdiff1d, zeros, uint16, where, empty, isin, unique, concatenate, ma
3434
from netCDF4 import Dataset
3535
import logging
36+
import platform
3637

3738

3839
class Correspondances(list):
@@ -387,6 +388,7 @@ def save(self, filename, dict_completion=None):
387388
self.previous_virtual_obs.to_netcdf(group)
388389
h_nc.module = self.class_method.__module__
389390
h_nc.classname = self.class_method.__qualname__
391+
h_nc.node = platform.node()
390392
logging.info('Create correspondance file done')
391393

392394
def load_compatible(self, filename):
@@ -415,6 +417,7 @@ def load(cls, filename):
415417
class_method= getattr(__import__(h_nc.module, globals(), locals(), h_nc.classname), h_nc.classname)
416418
else:
417419
class_method= None
420+
logging.info('File %s load with class %s', filename, class_method)
418421
obj = cls(datasets, h_nc.virtual_max_segment, class_method=class_method)
419422

420423
id_max = 0

src/scripts/EddyId

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3-
from argparse import ArgumentParser
3+
from py_eddy_tracker import EddyParser
44
from py_eddy_tracker.dataset.grid import RegularGridDataset
55
from datetime import datetime
66
from netCDF4 import Dataset
77

88

99
def id_parser():
10-
parser = ArgumentParser('Eddy Identification')
10+
parser = EddyParser('Eddy Identification')
1111
parser.add_argument('filename')
1212
parser.add_argument('datetime')
1313
parser.add_argument('h')

0 commit comments

Comments
 (0)