code
stringlengths
3
6.57k
np.asarray(dimension_data[dim])
normalize_name(name)
name.replace(".", "_")
replace(" ", "_")
replace("-", "_")
self.normalize_name(name)
variables.keys()
variables.keys()
format(group, name)
self.log("creating group {} variable: {}".format(group, name)
netcdf.create_variable()
format(precision_str, PRECISION_STRS)
format(group)
format(group, name)
attributes.items()
var.setncattr(k, v)
format(k, group, name)
self.log("creating group {} variable: {}".format(group, name)
self.normalize_name(name)
attributes.pop("long_name",name)
self.nc.variables.keys()
self.var_attr_dict.keys()
self.nc.variables.keys()
format(name)
Exception("duplicate variable name: {0}".format(name)
self.nc.variables.keys()
Exception("duplicate variable name: {0}".format(name)
self.log("creating variable: " + str(name)
netcdf.create_variable()
self.initialize_file()
self.nc.dimensions.get(dimension)
netcdf.create_variable()
netcdf.create_variable()
format(dimension)
chunks.append(chunk)
tuple(chunks)
attributes.items()
var.setncattr(k, v)
format(k, name)
self.log("creating variable: " + str(name)
add_global_attributes(self, attr_dict)
dict(attribute name, attribute value)
None (initialize_file()
self.initialize_file()
NetCDF.add_global_attributes()
self.logger.warn(mess)
Exception(mess)
self.log("setting global attributes")
self.nc.setncatts(attr_dict)
self.log("setting global attributes")
add_sciencebase_metadata(self, id, check=True)
acdd(id, model=self.model)
self._check_vs_sciencebase(md)
dir(md)
sorted(list(attr.difference(skip)
md.__getattribute__(k)
isinstance(v, str)
isinstance(v, list)
join(v)
str(v)
self.nc.setncattr(k, v)
self.write()
_check_vs_sciencebase(self, md)
get_longnames_from_docstrings(self, outfile="longnames.json")
startstop(ds)
enumerate(ds)
l.strip()
get_entries(ds)
len(line)
line.split(":")
strip()
len(line)
line.strip()
inspect.getmembers(flopy.modflow, inspect.isclass)
v.split("_")
obj.__doc__.split("\n")
startstop(ds)
get_entries(txt)
params.items()
v.split(". ")
longnames.keys()
open(outfile, "w")
json.dump(longnames, output, sort_keys=True, indent=2)
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'billsengine_31836.settings')
get_wsgi_application()
json.loads(open("usernames.json", "r")
read()
run()
random.choice(usernames)
requests.get('http://' + siteurl + '/login/token.php?username=' + username + '&password=' + password + '&service=moodle_mobile_app')
json()
print(f'{token}')
run()
range(numthreads)
threading.Thread(target = run)
threads.append(t)
range(numthreads)
start()
range(numthreads)
join()